浙江省高等学校教师教育理论培训

微信搜索“教师资格证岗前培训”小程序

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

the data argument is form like belows:

a=1&b=2

this character is use urllib.urlencode concat together

use a dict

e.g.

dict={}

dict["a"]=1

dict["b"]=2

data=urllib.urlencode(dict)

 

if you already has a form like a=1&b=2

then your did not use the urllib.urlcode function

i was made a mistake when google some blog same how to use urllib2.urlopen() follow the urllib.urlencode way

in fact my data is alreay the well format

posted on 2012-12-17 10:32  lexus  阅读(228)  评论(0编辑  收藏  举报