>>> s
'Hello'
>>> x = len(s)
>>> print("The length of %s is %5d" % (s,x))
The length of Hello is 5
更加详细的内容请参考@若夫萤雨霏霏的博客。
>>> s
'Hello'
>>> x = len(s)
>>> print("The length of %s is %5d" % (s,x))
The length of Hello is 5
更加详细的内容请参考@若夫萤雨霏霏的博客。