质量为本、客户为根、勇于拼搏、务实创新
python怎样返回列表元素个数
在Python中,可使用`len()`函数来返回列表的元素个数。例如:```pythonmy_list = [1, 2, 3, 4, 5]print(len(my_list))```输出为:```5```
TOP