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