python 除法保留小数点后两位

t = 68.5
d = 171
c = round(t/d,2)
print(c)

打印出结果为

posted @ 2021-06-10 15:46  阿瑶丫  阅读(905)  评论(1编辑  收藏  举报