【範例3】把數位輸出為不同格式的浮點數位符串。 PI = 3.141592653 print("pi1 = %10.3f" % PI) # 總寬度為10,小數位精度為3 print( ...
確定! 回上一頁