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))