>>> from bs4 import BeautifulSoup>>> soup = BeautifulSoup('<script>a</script>baba<script>b</script>', 'lxml')>>> for s in soup.select('script'):>>> s.extract()>>> soupbaba
欢迎分享,转载请注明来源:内存溢出
>>> from bs4 import BeautifulSoup>>> soup = BeautifulSoup('<script>a</script>baba<script>b</script>', 'lxml')>>> for s in soup.select('script'):>>> s.extract()>>> soupbaba
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)