其实很简单。ftplib.FTP里面有个参数叫encoding 如上图最后一行。所以在使用FTP时,主动指定编码格式即可. ftp = ftplib.FTP() ftp.encoding = "utf-8" 再使用就可以了