【求助】urllib.request.urlopen函数报错
本帖最后由 Unicorn# 于 2019-10-9 00:52 编辑urlopen函数报错:TypeError: can't concat str to bytes
代码:
head = {'User-Agent':'Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.6) Gecko/20091201 Firefox/3.5.6'}
req = ur.Request('https://i5.meizitu.net/2019/06/24c02.jpg', head)
response = ur.urlopen(req)
页:
[1]