可以啦!python2.7.9
>>> 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
12
13
14
15
16
17
18
19
23
24
25
26
27
28
29
34
35
36
37
38
39
45
46
47
48
49
56
57
58
59
67
68
69
78
79
89
>>> 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
12
13
14
15
16
17
18
19
23
24
25
26
27
28
29
34
35
36
37
38
39
45
46
47
48
49
56
57
58
59
67
68
69
78
79
89
2015-06-02
举报