← 返回列表

Python3 列表List Len 方法

Python3 列表List Len 方法 #!/usr/bin/python3 list1 = ['physics', 'chemistry', 'maths'] print (len(list1)) list2 = list(range(5)) #creates list of numbers between 0-4 print (len(list2))

Python3 列表List Len 方法

#!/usr/bin/python3

list1 = ['physics', 'chemistry', 'maths']
print (len(list1))

list2 = list(range(5)) #creates list of numbers between 0-4
print (len(list2))

打开资源 ↗

交流与评论