.user_profile{ display:block}

浮点数保留n位小数

p = 1.234
p = round(p,2) 
print(p) # 1.23

#round(你要操作的数,保留几位)

posted @ 2018-06-09 23:11  软萌团子  阅读(171)  评论(0编辑  收藏  举报