📜  以浮点格式打印到小数点后 2 位 python 代码示例

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

代码示例1
formatted_float = "{:.2f}".format(a_float)