问题描述
WARNING: The scripts pipenv and pipenv-resolver are installed in
'/Library/Frameworks/Python.framework/Versions/3.8/bin' which is not on PATH.
Consider adding this directory to PATH or,if you prefer to suppress this warning,use --no-
warn-script-location.
解决方法
您需要将其添加到PATH变量中。
示例:
import pymongo
client = pymongo.MongoClient()
users_db = client['UsersDB']
users_collection = users_db['users']
def check(collection,elements):
return bool(collection.find_one(filter={'$or' : [item for item in elements.items()]}))