代码示例:(标识:python_ref_round_1)
python_ref_round_1.py
x = round(3.1415926, 2)
print(x)
运行结果: