当前位置: 代码迷 >> 综合 >> python中的格式化输出和其它的输出方式
  详细解决方案

python中的格式化输出和其它的输出方式

热度:58   发布时间:2024-02-20 15:21:06.0

 

>>> s  'Hello'  >>> x = len(s)  >>> print("The length of %s is %5d" % (s,x))  The length of Hello is     5  

 


更加详细的内容请参考@若夫萤雨霏霏的博客。

  相关解决方案