python 爬虫并把网页中的文字写到txt中
import requestsfrom bs4 import BeautifulSoupfrom lxml import etreelink='http://www.chinanews.com/gn/2020/03-18/9129903.shtml'header={ 'user-agent':'Mozilla/5.0 (Windows NT 10.0; Win64; x64) A...