四舍五入有几种方法,例如对于a=123.4567,要求按四舍五入的原则保留两位小数,即a的结果为123.46 ,有以下几种方法: a=round(a ,2) a=format(a,"##.00") a=int(a*100+0.5)/100