貌似df.to_excel直接覆盖了。你要是非得用df.to_cxcel,可以先用df.to_cxcel保存文件1中,再用open(path,‘r’)读取文件1,用open(path,‘a+’)写入文件2。