内置函数_len

 

描述:

len()函数作用: 获取可迭代对象的长度

 

示例代码:

my_list = ['a', 'b', 'c']
print(len(my_list))  # 3

 

posted @ 2021-04-02 17:13  御姐玫瑰  阅读(75)  评论(0编辑  收藏  举报
levels of contents