摘要:
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 阅读全文
摘要:
import pymongo class MongoUtils: def __init__(self, host, port): self.client = pymongo.MongoClient(host, port) # 连接数据库 def get_db(self, db_name, user= 阅读全文