先上代码 import requests from bs4 import BeautifulSoup import os def html_url(n): url = 'http://www.win4000.com/meinv{}.html'.format(n) html_url = requests.get(url) html = html_url.text return html def jiexi(html): soup = BeautifulSoup(html,'html.parser') title_tag = soup.find('h