问题描述:计算字符串长度。 源代码: #!/usr/bin/python # -*- coding: UTF-8 -*- sStr1 = 'strhgnuidlen' print len(sStr1) 输出结果如下: 12