标签: mongodb pymongo
如何在Pymongo中选择满足条件(即键:值条件)的N个随机记录。像
my_random_sample = collection.find({'notified'False},{'$samples':100})