看不出问题呀
for x in [ 1,2,3,4,5,6,7,8,9 ]:
for y in [ 0,1,2,3,4,5,6,7,8,9 ]:
if x < y:
print x*10 + y
for x in [ 1,2,3,4,5,6,7,8,9 ]:
for y in [ 0,1,2,3,4,5,6,7,8,9 ]:
if x < y:
print x*10 + y
2016-07-31
for x in [ 1,2,3,4,5,6,7,8,9 ]:
for y in [ 0,1,2,3,4,5,6,7,8,9 ]:
if x < y:
print x*10 + y
应该是格式问题,严格按照空4格的要求。以下是执行后的
Type "copyright", "credits" or "license()" for more information.
>>> for x in [ 1,2,3,4,5,6,7,8,9 ]:
for y in [ 0,1,2,3,4,5,6,7,8,9 ]:
if x<y:
print 10*x+y
12
13
14
15
16
17
18
19
23
24
25
26
27
28
29
34
35
36
37
38
举报