Python 提供了一個內置函數round(),該函數會四舍五入為給定的位數,並返回浮點數,如果 ... for integers print(round(15)) # for floating point print(round(51.6)) ...
確定! 回上一頁