好得很程序员自学网

<tfoot draggable='sEl'></tfoot>

python2 url 带中文并写入中文路径

url带中文,后台需要使用urllib中的unquote,示例

 file = “/%s"%(unquote(suffix_name)) 

写以file为名称的文件是,需要encode一下,示例

 with open(file.encode('utf8'), 'wb') as f: 

查看更多关于python2 url 带中文并写入中文路径的详细内容...

  阅读:20次