R:
1.保留几位有效数字:
signif(x,digits)
2.保留几位小数:
round(x,digits)
Python:
1.“%.2f”%a
posted on 2017-12-21 17:46 青萍,你好 阅读(326) 评论(0) 编辑 收藏 举报