如何使用int()进行四舍五入取整

s = 4.5

int(4.5 +0.5)   返回5

猜你喜欢

转载自blog.csdn.net/qq_21786897/article/details/79885076