python自帶函數(shù)——取得長度 len
提問人:楊紫紅發(fā)布時間:2020-11-18
>>> len('this is a test string')
21
>>> creature_list = ['unicorn', 'cyclops', 'fairy', 'elf', 'dragon',
'troll']
>>> print(len(creature_list))
6
繼續(xù)查找其他問題的答案?
相關(guān)視頻回答
>>> len('this is a test string')
21
>>> creature_list = ['unicorn', 'cyclops', 'fairy', 'elf', 'dragon',
'troll']
>>> print(len(creature_list))
6
點擊加載更多評論>>