records = [0.05784, 0.01158085, -0.09624819]
result = []
for j in range(0, 3):
for i in range(1):
if i == 0:
result.append([])
result[j].append(records[j])
print(result)
举个例子,转化为n个一维数组
records = [0.05784, 0.01158085, -0.09624819]
result = []
for j in range(0, 3):
for i in range(1):
if i == 0:
result.append([])
result[j].append(records[j])
print(result)
举个例子,转化为n个一维数组