Gxlsystem TIY Editor
Gxlsystem 在线教程
改变方向
暗黑模式
python_string_placeholder_15.py:
#Use "F" to convert a number into a fixed point number, but display inf and nan as INF and NAN: x = float('inf') txt = "The price is {:F} dollars." print(txt.format(x)) #same example, but with a lower case f: txt = "The price is {:f} dollars." print(txt.format(x))