0.直接上两段代码:import numpy as np a = [] e = 0.3 a.append(['s1', 's2', 's3', float(e)]) a = np.array(a) print(type(a[0, 3]))
確定! 回上一頁