04 2023 档案
摘要:import requests from lxml import etree from threading import Thread class Spider(object): def __init__(self): self.header = {"user-agent": "Mozilla/5.
阅读全文
摘要:1 import requests 2 from lxml import etree 3 4 header = { 5 "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like G
阅读全文
摘要:目录结构: 1、 学生文件 student.py # 学生类 class Student(object): # 存放学生信息 student_info = {} # 学生初始化方法 def __init__(self,id,name,addr,tel): self.id = id self.name
阅读全文