如何在Python中四舍五入答案
尝试导入数学r =输入(“请以cm为单位插入半径:”)r_float = float(r)pindala1 = math.pi * r_float ** 2 print(round(pindala1,2),“ cm ^ 2”)