可以通过设置join参数试试:pd.concat( [df数据1, df数据2, …… ], axis = 0或1, join = 连接方式, keys = 表明数据来源 )join=outer ,表示保留所有的列,并将不存在的值设为缺失join=inner ,表示保留两个表都出现过的列。