以下的例子,我們需要Python中math資料庫的支援。 ... 無條件進位=", math.ceil(a) print a, " 無條件捨去=", math.floor(a) print a, " 四捨五入=", round(a) print ...
確定! 回上一頁