# -*- coding:utf-8 -*-

# pip install pymongo
from pymongo import MongoClient

# client = MongoClient('mongodb://localhost:27017')
client = MongoClient('localhost',27017)

db = client.test
# db = client['test']

collection = db.score
# collection = db['score']

result = collection.find() # cursor 객체
# print(result)

for res in result:
    print(res)
61d27da07d6ba76179c9c27d25d6955a077f7229
<mask token>

<mask token>
for res in result:
    print(res)

<mask token>
client = MongoClient('localhost', 27017)
db = client.test
collection = db.score
result = collection.find()
for res in result:
    print(res)

from pymongo import MongoClient
client = MongoClient('localhost', 27017)
db = client.test
collection = db.score
result = collection.find()
for res in result:
    print(res)

# -*- coding:utf-8 -*-

# pip install pymongo
from pymongo import MongoClient

# client = MongoClient('mongodb://localhost:27017')
client = MongoClient('localhost',27017)

db = client.test
# db = client['test']

collection = db.score
# collection = db['score']

result = collection.find() # cursor 객체
# print(result)

for res in result:
    print(res)