[Head First Python]2. BIF(内置函数)

1- range()

1 >>> for each in range(2): print(each)
2 
3 ... 
4 
5 0
6 
7 1

 

posted @ 2014-06-17 14:56  galoishelley  阅读(189)  评论(0编辑  收藏  举报