下面代码结果好像是对的啊,为什么不通过这章节??
a=['1','2','3','4','5','6','7','8','9']
b=['0','1','2','3','4','5','6','7','8','9']
c=['0','1','2','3','4','5','6','7','8','9']
C=[a1+b1+c1 for a1 in a for b1 in b for c1 in c if a1==c1]
print C
a=['1','2','3','4','5','6','7','8','9']
b=['0','1','2','3','4','5','6','7','8','9']
c=['0','1','2','3','4','5','6','7','8','9']
C=[a1+b1+c1 for a1 in a for b1 in b for c1 in c if a1==c1]
print C
2016-02-27
举报