需求描述: 1,打开网站: 2,获取网站的文件内容: 3,返回保存到文件中: 这里的就用到了多线程的方法 import requests,threading,time def write_html(url,name): r = requests.get(url) with open(name,'w',encoding='utf-8') as fw: fw.write(r.text) urls=['www.nnzhp.cn','besttest.cn','www.imdsx.cn','sb.nnz…