1 def foo():
2 x = 5
3 for i in range(3):
4 print(i)
5 for i in range(10, 13):
6 print(i)
7
8 foo()
输出:
>>>
10
11
12
0
1
2
1 def foo():
2 x = 5
3 for i in range(3):
4 print(i)
5 for i in range(10, 13):
6 print(i)
7
8 foo()
输出:
>>>
0
1
2
10
11
12
posted on 2013-05-16 19:54
unixfy 阅读(162)
评论(0) 编辑 收藏 引用