File "C:\Users\User\Desktop\abc\test.py", line 57, in upload_fileAttributeError: 'bytes' object has no attribute 'getPage' 如何修复AttributeError:'bytes‘对象没有属性'getP
Python.framework/Versions/3.4/lib/python3.4/urllib/request.py", line 444, in openAttributeError: 'bytes' object has no attribute 'data'import urllib, urllib.request, urllib.parse
import http.cookiej
import urllib.request as requesturl='https://api.um.warszawa.pl/api/action/dbtimetable_getrequest.urlopen(url) as response: data = json.loads(source)
然后出现错误:'bytes‘对象没有'timeout’<
我写了以下代码,但问题是我收到一个错误(AttributeError: 'bytes' object has no attribute 'hexdigest')错误语法不起作用 import requestsrequest_api_data (query_char): res = requests.get