随笔分类 - Python
摘要:直接上代码 1 import re 2 from tool import mkdir 3 import requests 4 from bs4 import BeautifulSoup 5 6 7 def main(url): 8 msg = requests.get(url, headers=he
阅读全文
摘要:from fastapi import FastAPI app = FastAPI() @app.get("/") def read_root(): return {"Hello":"Word"} @app.get("/items/{item_id}") def read_item(item_id:
阅读全文