Python格式化输出 %s %d %f

python print格式化输出。python   %r 用来作 debug 比较好,由于它会显示变量的原始数据(raw data),而其它的符 号则是用来向用户显示输出的。debug   1. 打印字符串调试 print ("His name is %s"%("Aviad")) 效果: code 2.打印整数orm print ("He is %d years old"%(25)) 效果: b
相关文章
相关标签/搜索