執行 ❯
擁有你自己的 Python 伺服器
×
更改方向
更改主題,深色/淺色
前往 Spaces
#Use "F" to convert a number into a fixed point number, but display inf and nan as INF and NAN: x = float('inf') txt = f"The price is {x:F} dollars." print(txt) #same example, but with a lower case f: txt = f"The price is {x:f} dollars." print(txt)
價格是無窮美元。
價格是無窮美元。