摘要:
https://blog.csdn.net/weixin_44201525/article/details/109769214 阅读全文
摘要:
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)) # 小 阅读全文