操作np.rot90(df,1)#矩阵,逆时针,90度np.rot90(df,-1)#矩阵,顺时针,90度矩阵/数组,使用循环速度特慢#!/usr/binpython3#-*-coding:UTF-8-*-importos,sys,reimportpandasaspddf=pd.read_csv("final.head",index_col=0,header=0,sep="\t")length=pd.read_csv("final.length",index_col=0,header=0,sep="\t")foriinrange(len(df.index)):forjinrange(len(d