pythonCopy #python 3.x num = 0.02893574 print ("{:.4f}".format(num)). 輸出: textCopy 0.0289. 此處, .4f 稱為格式規範,表示輸出應僅顯示小數 ...
確定! 回上一頁