Python 格式化输出整理

来源:互联网 发布:c语言双斜杠是什么意思 编辑:程序博客网 时间:2024/05/17 02:56

1.打印字符串

 print ("my name is %s" %("Slevin"))

2.打印整数

 print(" the number of him is %d" %(1))

3.打印浮点数

0 0
原创粉丝点击