为什么我输出的结果也是对的?还有如果我个人判定0和1不会出现y的list里,自己省略掉可以么?
for x in [ '1','2','3','4','5','6','7','8','9']:
for y in ['1','2','3','4','5','6','7','8','9']:
if y>x:
print x+y
for x in [ '1','2','3','4','5','6','7','8','9']:
for y in ['1','2','3','4','5','6','7','8','9']:
if y>x:
print x+y
2018-07-21
举报