📜  f 字符串货币格式 - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:26.691000             🧑  作者: Mango

代码示例1
amt = 5.3568
print(f"I have ${amt:,.2f}.")
# Output: 
# I have $5.36.