python 获取字符串长度

str = 'hello world'
print(len(str))

 

posted @ 2020-08-05 22:11  轩辕吊雷  阅读(532)  评论(0编辑  收藏  举报