2013年6月26日

关于python中urllib.urlencode的时候出错:UnicodeEncodeError: ‘ascii’的记录

摘要: 原文我参见了:http://hi.baidu.com/setcookie/item/ddc6b694b1f13435336eeb3c为毛我要费事的写下了,就是为了让自己记录一下,下面的也是直接摘录过来的。我的部分代码def send_info(args): try: url = 'url' args['uid'] = ***** args['pwd'] = 'e10adc3949ba59abbe56e0eeee57f20f883e' j_data= urllib.urlencode(args) ==>python的默认编码是 阅读全文

posted @ 2013-06-26 01:38 牛-_-蜗 阅读(2368) 评论(0) 推荐(0)

导航