s=BeautifulSoup(html,"html.parser") tt=s.findAll("p") for title in tt: title_string=title.string if "/" not in title_string: print(title_string)
为什么会报错