Python进阶------Python函数

1.# 假如让保留小数点后两位------使用round函数 格式:round(这个数, 保留的位数 ) a = 3.1415926 print(a) result = round(a, 2) print(result) 输出的结果为: 2.Python之禅--------import this http://www.cnblogs.com/huangbiquan/p/7881913.html 3
相关文章
相关标签/搜索