📜  python 获取数组长度 - Python 代码示例

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

代码示例1
#new array in range 1 -> 10;
ar = [i for i in range(1,10)]
print(len(ar))
# OR
print(len([1,2,3]))