Python 的 round() 函式可以做四捨五入,但「五入」的規則和以前學的數學 ... 進位至小數點後2 位print(math.floor(f * 1) / 1.0) # 1.0 無條件捨去至 ...
確定! 回上一頁