虽然写出来了,但是感觉像C一点都不简洁,不优雅,怎么办?
for x in [ 0,1,2,3,4,5,6,7,8,9 ]:
for y in [ 0,1,2,3,4,5,6,7,8,9 ]:
z = x*10 + y
a = z/10
b = z%10
if a < b:
print z
for x in [ 0,1,2,3,4,5,6,7,8,9 ]:
for y in [ 0,1,2,3,4,5,6,7,8,9 ]:
z = x*10 + y
a = z/10
b = z%10
if a < b:
print z
2018-09-27
举报