📜  python3 print format float - Python 代码示例
📅  最后修改于: 2022-03-11 14:45:33.610000             🧑  作者: Mango
代码示例1
numbers = [23.23, 0.123334987, 1, 4.223, 9887.2]
for number in numbers:
print(f'{number:.4f}')