找bug练习
unlike_movies = [越光宝盒, 逐梦演艺圈]
def check_movie(movie):
if movie on unlike_movies
print('🙅️拒绝观看' + movie + '!')
else:
print('🙆同意观看' + movie + '!')
check_movie('大话西游')
check_movie('越光宝盒')
check_movie('流浪地球')
改为:
unlike_movies = ['越光宝盒', '逐梦演艺圈']
def check_movie(movie):
if movie in unlike_movies:
print('🙅️拒绝观看' + movie + '!')
else:
print('🙆同意观看' + movie + '!')
check_movie('大话西游')
check_movie('越光宝盒')
check_movie('流浪地球')