python 中想查看通过append函数增长过后的list 的属性,可以灵活使用shape
new_data = []
new_data.append(1)
new_data.append(2)
#'''想知道list属性
print(np.array(new_data).shape)
通过list转矩阵用shape间接得到list属性
python 中想查看通过append函数增长过后的list 的属性,可以灵活使用shape
new_data = []
new_data.append(1)
new_data.append(2)
#'''想知道list属性
print(np.array(new_data).shape)
通过list转矩阵用shape间接得到list属性