to_csv时,设置index=False 或 index=True,index_label = 'id'read_csv时,设置index_col=0即可 两种方式均可哦,快去试试吧!!!(*^▽^*) 转载于:https://www.cnblogs.com/cola-1998/p/10803164.html