Python的pandas错误 TypeError delimiter must be an 1 charact 2019-09-02 #Python 解决方案:在pandas.to_csv(sep=’ ‘)中的sep=’ ‘改为: sep=str(',') 参考 pandas - Solving error “delimiter must be a 1-character string” while writing a dataframe to a csv file - Stack Overflow