索引不一致问题,去掉索引再赋值

通过

pd.DataFrame(A).values
或者

list(pd.DataFrame(A)

进行转换