答案类似,但是顺序不同
L =[1,2,3,4,5,6,7,8,9,0] L2 =[1,2,3,4,5,6,7,8,9] print [a*100+b*10+c for a in L2 for b in L for c in L2 if a is c] 我这个有问题吗?好像就顺序不一样,但是会认为是错误答案
L =[1,2,3,4,5,6,7,8,9,0] L2 =[1,2,3,4,5,6,7,8,9] print [a*100+b*10+c for a in L2 for b in L for c in L2 if a is c] 我这个有问题吗?好像就顺序不一样,但是会认为是错误答案
2016-01-05
举报