摘要: import redis REDIS_ITEMS_HOST: str = host REDIS_ITEMS_PASSWORD: str = pwd REDIS_ITEMS_DB: int = 4 #查询DB4 REDIS_ITEMS_PORT: int = 6379 new_r = redis.Re 阅读全文
posted @ 2022-04-18 16:21 亿逍遥 阅读(1003) 评论(0) 推荐(0) 编辑
摘要: import pymongo class MongoUtils: def __init__(self, host, port): self.client = pymongo.MongoClient(host, port) # 连接数据库 def get_db(self, db_name, user= 阅读全文
posted @ 2022-04-18 16:13 亿逍遥 阅读(362) 评论(0) 推荐(0) 编辑