技术文章 > 后端开发 > Python教程
Python3的round()函数四舍五入取整时,采用最近偶数原则
>>> round(1.5)2>>> round(2.5)2>>> round(3.5)4>>> round(4.5)4
以上就是python3中round()函数碰到的问题的详细内容,更多请关注php中文网其它相关文章!
已抢65143个
已抢28622个
已抢15469个
已抢7788个
已抢9675个
已抢19686个