Inserting a Document¶ ... To insert a document into a collection we can use the insert_one() method: >>> posts = db.posts >>> post_id = posts.insert_one(post).
確定! 回上一頁