高仿模拟练习,补全代码空缺,答案点击按钮展开
对 pi 的近似值保留 2 位小数输出。
pi = 3.14159 print(____)
round(pi, 2)
round(x, n) 按四舍五入保留 n 位小数。round(3.14159, 2)=3.14。