摘要: https://blog.csdn.net/weixin_44201525/article/details/109769214 阅读全文
posted @ 2021-04-15 17:29 id_ning 阅读(28) 评论(0) 推荐(0) 编辑
摘要: print(round(1.2)) # 小数点后值小于0.5时,取最近的整数 1 1 print(round(1.5)) # 小数点后值等于0.5时,取最近的偶数 2 2 print(round(2.5)) # 小数点后值等于0.5时,取最近的偶数 2 2 print(round(1.6)) # 小 阅读全文
posted @ 2021-04-15 15:17 id_ning 阅读(306) 评论(0) 推荐(0) 编辑