class DBHelper: def __init__(self): client = pymongo.MongoClient() self.db = client[DATABASE] This code imports the pymongo library, and in the constructor, ...
確定! 回上一頁