摘要:
import csv # 写数据 with open("data.csv","w",encoding="utf-8",newline="") as f: w = csv.writer(f) w.writerow(["id","name","mobile"]) w.writerow(["1001"," 阅读全文
摘要:
# 线程,进程 # 线程:是执行单位 # 进程:资源单位,一个进程至少有一个线程 from threading import Thread def func(): for i in range(1000): print("子线程",i) if __name__ == "__main__": t = 阅读全文
摘要:
main.py import requests from bs4 import BeautifulSoup import os import lib.tools as t import time def main(): for i in range(1,11): bz_url = f"https:/ 阅读全文
摘要:
from turtle import title from bs4 import BeautifulSoup import requests def main(): r = requests.get("https://wwww.baidu.com") r.encoding="utf-8" html 阅读全文
摘要:
main.py from time import time from module.action import Action as action from module.save import Save as save from module.tools import Tools as tools 阅读全文