import urllib
url="http://www.baidu.com/&&?"
c=urllib.quote(url)
print(c)
c=urllib.quote_plus(url)
print(c)
c=urllib.unquote(c)
print(c)
c=urllib.unquote_plus("http%3A%2F%2Fwww.baidu.com%2F%26%26%3F")
print(c)
#Get请求实例
params=urllib.urlencode({"name":"zz","passwd":"4565892"})#Python的Get方式访问
print(params)
GetMethod=urllib.urlopen("http://python.org/query",params)#
#Pose请求实例
postMethod=urllib.urlopen("http://python.org/query?%s"%params)
postMethod.read()#