📜  创建一定长度的列表python代码示例

📅  最后修改于: 2022-03-11 14:47:04.076000             🧑  作者: Mango

代码示例2
# 2.X only. Use list(range(10)) in 3.X.
>>> l = range(10)
>>> l
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9]