Python 练习实例47

版权声明:版权所有,转载请注明链接! https://blog.csdn.net/qq_43558971/article/details/91404316

题目:计算字符串长度。

#!/usr/bin/python
# -*- coding: UTF-8 -*-
 
sStr1 = 'strlen'
print len(sStr1)

猜你喜欢

转载自blog.csdn.net/qq_43558971/article/details/91404316