判断mongo属性存在性

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_34069180/article/details/84963654
db.getCollection('台风山竹评论0').find({'lat':{'$exists': 'True'}})

利用这个句柄,会得到类似可以for i in cursor的格式,来进行处理。

猜你喜欢

转载自blog.csdn.net/qq_34069180/article/details/84963654