list_soup = BeautifulSoup(str(requests_content), 'html.parser')
info_table = list_soup.find('recordset')
info_table 显示为空
因为recordset标签上有
requests_content = self.get_page(get_url).replace('<script type="text/xml">', '')
info_table = list_soup.find('recordset')
当if或elif分支已匹配时,Python会忽略所有以下elif条件。
如果想匹配所有条件,用if下if