📜  在 python 代码示例中查找数组长度

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

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