python爬虫url带中文解决方案之一

import urllib2
urllib2.quote("呵呵哒")
#输出
'%BA%C7%BA%C7%DF%D5'

 

posted @ 2016-04-11 17:15  小星星☆  阅读(1561)  评论(0编辑  收藏  举报