python 数组元素个数

list=[1,2,3,{1,4,5,6,7}]

print(len(list))

 

输出4

 

posted @ 2018-07-23 15:33  mghhz816  阅读(747)  评论(0编辑  收藏  举报