3 lines
60 B
Python
3 lines
60 B
Python
l = [1,2,3,1,1,1,1,1,1]
|
|
# len 返回list长度
|
|
print(len(l)) |
l = [1,2,3,1,1,1,1,1,1]
|
|
# len 返回list长度
|
|
print(len(l)) |