Python的标准输出时间:2023-03-09 18:31:29 遇到什么就添加到这里来。 首先,是最基本的。 print "Number is %d %f %s"%(intA,floatB,stringC) 如果对浮点数的精度有所要求的话,比如要保留两位小数,用下面的语句。 print "The number is %.2f"%floatA