round四舍五入

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

Process finished with exit code 0

 

posted @ 2017-02-09 17:41  失落的黎明  阅读(134)  评论(0编辑  收藏  举报