如果覺得除法有太多小數點,可以使用round 進行四捨五入,此外也可以讓兩個數字前後 ... print(f'{b1} / {b2} = {round(b1/b2,3)}') # 使用round 四捨五入到小數點三位 ...
確定! 回上一頁