no atrribute 'add_data'
# -*- coding: UTF-8 -*-
import urllib.request
request = urllib.request.Request('http://www.baidu.com')
#request.add_data('a','1') #no atrribute 'add_data'
request.add_header('User-Agent','Mozilla/5.0')
response = urllib.request.urlopen(request)