为什么用while循环不可以?
for x in [ 1,2,3,4,5,6,7,8,9 ]:
for y in [ 1,2,3,4,5,6,7,8,9 ]:
while x<y:
print str(x)+str(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 ]:
while x<y:
print str(x)+str(y)
2019-09-05
举报