friht 发表于 2018-8-11 13:06:41

MongoDB Python驱动

>>> new_posts = [{"author": "Mike",...  
                  "text": "Another post!",
  
                  "tags": ["bulk", "insert"],
  
                  "date": datetime.datetime(2009, 11, 12, 11, 14)},
  
               {"author": "Eliot",
  
                  "title": "MongoDB is fun",
  
                  "text": "and pretty easy too!",
  
                  "date": datetime.datetime(2009, 11, 10, 10, 45)}]
  
>>> posts.insert(new_posts)
页: [1]
查看完整版本: MongoDB Python驱动