📜  将二维字符串数组转换为浮点 python 代码示例

📅  最后修改于: 2022-03-11 14:45:16.255000             🧑  作者: Mango

代码示例1
import numpy as np

a = ['0.1234', '12345.6789']
a = a.astype(np.float)
print(a)
# Output : [0.1234, 12345.6789]