报错信息: 'latin-1' codec can't encode characters in position 7-12:
解决办法,修改ftplib的默认encoding
再python的安装目录下,找到Lib目录,编辑 ftplib.py
搜索:encoding
将encoding = 'latin-1'
修改为:encoding = 'utf-8'
报错信息: 'latin-1' codec can't encode characters in position 7-12:
解决办法,修改ftplib的默认encoding
再python的安装目录下,找到Lib目录,编辑 ftplib.py
搜索:encoding
将encoding = 'latin-1'
修改为:encoding = 'utf-8'
文章评论