python判斷數據庫返回結果是否爲空

python判斷mongo查詢結果是否爲空,可使用cursor.count()來判斷,爲0則查詢返回結果爲空。python conn = pymongo.MongoClient(host="192.168.3.6",port=27017)app db = conn.testdbide db.authenticate("appuser","apppass")blog mylog = db.syste
相關文章
相關標籤/搜索