data = bytes(urllib.parse.urlencode({"hello":"world"}), encodings="utf-8")
response = urllib.request.urlopen("http://httpbin.org/post%22, data=data)
print(response.read( ).decode("utf-8"))
1, , encodings="utf-8" 去掉s =》, encoding="utf-8"
2, "http://httpbin.org/post%22, data=data 少了个" =》 "http://httpbin.org/post%22%22,
import urllib
import urllib.request as request
data = bytes(urllib.parse.urlencode({"hello":"world"}), encoding="utf-8")
response = urllib.request.urlopen("http://httpbin.org/post?", data=data)
print(response.read( ).decode("utf-8"))