File size: 261 Bytes
e16247a
 
 
 
 
 
1
2
3
4
5
6
a = 100
b = 100.123
c = "this is string"
#错误写法:参数与占位符类型顺序不对应
#print("this is int type:%d,this is float type:%.3f, this is str type:%s"%(b,a,c))
print("this is int type:%d,this is float type:%.3f, this is str type:%s"%(a,b,c))