运行下方代码段,输出的结果是( )。a = [1,2,5,8,13,6,1]b = [4,2,5,9,2,8,1]c=[]for i in a: for j in b:__________if i==j:__________ c.append(i)print(c)
(A)[1, 2, 2, 5, 8, 1]
(B)[1, 2, 5, 8, 1]
(C)[2, 5, 1]
(D)[2, 5, 2, 8, 1]
参考答案
继续答题:下一题
(A)[1, 2, 2, 5, 8, 1]
(B)[1, 2, 5, 8, 1]
(C)[2, 5, 1]
(D)[2, 5, 2, 8, 1]