简单点的

result = collection.find_one({'name':'zrq'})
print(result)

复杂点的

年龄大于的

result = collection.find_one({'age':{'$gt':20}})

print(result)

Python学习之MongoDB数据查询
Python学习之MongoDB数据查询

相关文章:

  • 2021-12-11
  • 2021-12-23
  • 2021-10-11
  • 2021-12-24
  • 2022-12-23
  • 2022-12-23
  • 2021-08-01
猜你喜欢
  • 2022-12-23
  • 2021-07-21
  • 2022-12-23
  • 2022-02-19
  • 2021-05-27
  • 2021-04-07
  • 2021-10-15
相关资源
相似解决方案