def as_num(x): y='{:.32f}'.format(x) # 5f表示保留5位小数点的float型 return(y) print(as_num(1.2e-4))