
* 겪고 있는 문제 상황을 최대한 자세하게 작성해주세요.
* 문제 해결을 위해 어떤 시도를 해보았는지 구체적으로 함께 알려주세요.
from pymongo import MongoClient
import certifi
ca = certifi.where()
client = MongoClient(
"mongodb+srv://sparta:test@cluster0.mzxpeul.mongodb.net/?retryWrites=true&w=majority",
tlsCAFile=ca,
)
db = client.dbsparta
all_users = list(db.users.find({}, {"_id": False}))
for a in all_users:
print(a)
이 걸 실행할 때 저장하고 우클릭 후 터미널에서 파이썬 실행을 해야 실행이 되는 건가요?
python3(mac) dbprac.py 이 명령어 치는 때는 언제인가요?
