🌈 搜索
📅  最后修改于: 2022-03-11 14:46:21.891000             🧑  作者: Mango
import numpy as np x = np.array(['1.1', '2.2', '3.3']) y = x.astype(np.float) print(y) # Output : [1.1, 2.2, 3.3]