08. python bulit-in function

最後更新: 2015-3-3

 

 


range

range(stop)

range(start, stop[, step])

i.e.

range(10)

[0, 1, 2, 3, 4, 5, 6, 7, 8, 9]

range(0, -10, -1)

[0, -1, -2, -3, -4, -5, -6, -7, -8, -9]

range(0)

[]

 


 

 

 

 

Creative Commons license icon Creative Commons license icon