🌈 搜索
📅  最后修改于: 2022-03-11 14:48:51.886000             🧑  作者: Mango
num = 1.234 print("{:.2f}".format(num)) >> 1.23 print(f"{num:.2f}") >> 1.23