询问
'NoneType' object has no attribute 'read'这个是什么情况,读取网页的时候出现的
def url_open(url):
req=urllib.request.Request(url)
response=urllib.request.urlopen(url)
def get_page(url):
html=url_open(url).read()
还有这个find也是会出现
'NoneType' object has no attribute 'find'
a=html.find('img src=') 这用户名{:7_141:} def url_open(url):返回None,没有read方法
页:
[1]