Python:一行代码将以e为结尾的科学计算法类型的数值转为小数点类型数值
Python:一行代码将以e为结尾的科学计算法类型的数值转为小数点类型数值
一行代码将以e为结尾的科学计算法类型的数值转为小数点类型数值
import numpy as np
a = np.array([1,0.000002,0.0003])
print(a)
print(list(a))
import numpy as np
np.set_printoptions(suppress=True) #在程序代码的头文件上加下边一行代码即可!
a = np.array([1,0.000002,0.0003])
print(a)
print(list(a))
赞 (0)