苏小测

导航

 

自带函数 round(0.115,2)----> 0.11,与预期不符

自定义:

def round2(num,scale):

  return round(num*10**scale)*10**(-scale)

  

posted on 2021-01-19 20:43  苏小测  阅读(283)  评论(0编辑  收藏  举报