
강의내용 3분28초에서 코드를 똑같이입력한것 같은데 저렇게 안떠요 ㅜㅠ
작성한 코드 및 에러 메세지
from pymongo import MongoClient
import certifi
ca = certifi.where()
client = MongoClient('mongodb+srv://test:sparta@cluster0.7czd2wo.mongodb.net/cluster0?retryWrites=true&w=majority', tlsCAFile=ca)
db = client.dbsparta
movie = db.movies.find_one({'title':'가버나움'})
star = movie['star']
all_movies = list(db.movie.find({'star':star},{'_id':False}))
for m in all_movies:
print(m['title'])
C:\Users\join\Desktop\sparta\pythonprac\venv\Scripts\python.exe C:\Users\join\Desktop\sparta\pythonprac\DBmovie.py
종료 코드 0(으)로 완료된 프로세스
