python获取数组元素个数的方法

来源:互联网 发布:志鸿优化系列丛书 编辑:程序博客网 时间:2024/06/05 19:54


比如:

mylist = [1,2,3]

print(len(mylist))

运行的结果为:

3

0 0
原创粉丝点击