摘要: 导入pymongo并选择要操作的集合 数据库和集合乜有会自动创建 from pymongo import MongoClient client = MongoClient(host,port) collection = client[db名][集合名] 添加一条数据 ret = collection 阅读全文
posted @ 2020-04-17 09:17 阿磊小哥哥呀 阅读(847) 评论(0) 推荐(0) 编辑
摘要: """ https://fastapi.tiangolo.com/project-generation/cors中间件处理跨域 """ from fastapi import FastAPI from pydantic import BaseModel from starlette.middlewa 阅读全文
posted @ 2020-04-17 09:15 阿磊小哥哥呀 阅读(5850) 评论(0) 推荐(0) 编辑