Skip to content

Latest commit

 

History

History
22 lines (16 loc) · 331 Bytes

55.md

File metadata and controls

22 lines (16 loc) · 331 Bytes
@author jackzhenguo
@desc 
@date 2019/3/10

55 创建range序列

  1. range(stop)
  2. range(start, stop[,step])

生成一个不可变序列:

In [1]: range(11)
Out[1]: range(0, 11)

In [2]: range(0,11,1)
Out[2]: range(0, 11)
[上一个例子](54.md) [下一个例子](56.md)