Python 3 教程
Python3 字符串
Python len() 方法返回對象(字符、列表、元組等)長度或項目個數(shù)。
len()方法語法:
len( s )
返回對象長度。
以下實例展示了 len() 的使用方法: