以下實例展示了len()的使用方法: #!/usr/bin/python # -*- coding: UTF-8 -*- str = "this is string example....wow!!!" print "字符串长度: ", len(str).
確定! 回上一頁