len()

len() 用于统计序列的长度,字符串 、元组 、列表都属于序列post In [1]: str = "hello world" In [2]: len(str) Out[2]: 11
相关文章
相关标签/搜索