我已经尝试过这些变化,
df = pd.read_fwf("test.txt", sep='\t', header = 20, engine='python')
df = pd.read_fwf("test.txt", sep=r'\\t', header = 20, engine='python')
df = pd.read_fwf("test.txt", sep='\\\\t', header = 20, engine='python')
print(list(df.columns.values))
我得到的结果是,
['Column1name\tColumn2name\tColumn3name\tColumn4name\tColumn5name']