为什么加了decode('utf-8')还是出错
i = 0 for url in listurl: f = open(str(i)+'.jpg','w') req = urllib.request.urlopen(url) buf = req.read() buf = buf.decode('utf-8') f.write(buf) i+=1 出现UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte错误 求大神解答