[Python] Quick Start & Cheatsheet for MongoDB

Qurick start with mongodb

1. How to install MongoDB by pip?

  1. Install PyMongo
  1. We will use the mongodb srv url, then we need install dnspython.

2. How to Connect Mongodb with python?

3. Read data

  1. find one

2. find all

4. Create data

  1. insert one

2. insert many

5. Update data

update_one

Reff

發佈留言

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *