我有两个像这样的列表:
options = [['64', '32', '42', '16'], ['Sit', 'Beg', 'Shake', 'Catch'], ['Lion', 'Dog', 'Cat', 'Puppy']]
right_answer = ['42', 'Sit', 'Puppy']
我想从选项中删除正确答案并获得以下输出:
incorrect_answer = [['64', '32', '16'], ['Beg', 'Shake', 'Catch'], ['Lion', 'Dog', 'Cat']]
我尝试使用 .remove(),但它会清空列表:
for i in range(0,len(options)):
incorrect_answers = options[i].remove(right_answer[i])