1 有效数字的定义 参考自百度百科-有效数字 2 将不大于1的小数保留n为有效数字 np.format_float_positional(x, precision=2, unique=True, fractional=False, trim='-')