标签:class bbb bsp baidu font sep mamicode png world
age = 18 weight = 64 print("我的名字是%s,我的国籍是%s"%("小张","中国")) print("我的年龄:%d岁"%age) print("我的年龄:%d岁,体重是%dkg"%(age,weight)) print("aaa","bbb","ccc") print("www","baidu","com",sep=".") print("hello",end="") print("world",end="\t") print("python",end="\n") print("end")
以上是一些比较常用的格式化输出
标签:class bbb bsp baidu font sep mamicode png world
原文地址:https://www.cnblogs.com/cyx-b/p/12907830.html