7-5課里面html_parser解析器變量作用域的問題
parse方法里面有一個soup對象 soup?=?BeautifulSoup(page_url,?'html.parser',?from_encoding='utf-8') 在另一個內部方法?_get_new_data?調用的soup對象是那里來的 links?=?soup.find_all('a',?html=re.compile(r'^/item/.*')) 我這個soup提示:Unresolved?reference?'soup'
2018-07-01