python 에 서 는 mongo 의 를 사용 합 니 다.id(ObjectId)

855 단어 TipsMongo
Python 에서 ObjectId 가 져 오기
from bson.objectid import ObjectId
a = [ObjectId('5bd184790640307f2515c99e'), ObjectId('5bd184790640307f2515c99f')]
# map(lambda x: x.toString(), a)
str(a)

좋은 웹페이지 즐겨찾기