Traceback (most recent call last):
File "D:/projects/interface/python_get.py", line 10, in <module>
data = urllib.urlencode(data)
AttributeError: module 'urllib' has no attribute 'urlencode'
错误原因:python2和python3的urllib结构是有所不同的,所以不能这样用
解决方案:
data = urllib.parse.urlencode(data)