时间:2024-11-08 18:26:27
1、新建一个如何对浮点数四舍五入.py,如图所示:
3、定义一个浮点数变量 a,代码:a = 10.9
5、使用 int() 将变量 a 转换成int类型,如图所示: