后浪云Python教程:python中len是什么
len()方法语法:
len( str )
相关推荐:《Python教程》
返回值:
返回字符串长度。
以下实例展示了len()的使用方法:
#!/usr/bin/python str = "this is string example....wow!!!"; print "字符串长度: ", len(str);
以上实例输出结果如下:
字符串长度: 32
版权声明:
作者:后浪云
链接:https://www.idc.net/help/169488/
文章版权归作者所有,未经允许请勿转载。
THE END