2021年3月13日 — import math num=123.578 #四捨五入 print(round(num)) #124 #無條件進位 print(math.ceil(num)) #124 #無條件捨去 print(math.floor(num)) #123.
確定! 回上一頁