round四舍五入

1 #!/usr/bin/env python
2 r = round(3.6)
3 #四舍五入
4 print(r)
C:Python35python3.exe F:/Python/2day/c7.py
4

Process finished with exit code 0
原文地址:https://www.cnblogs.com/shiluoliming/p/6383183.html