Skip to content

Instantly share code, notes, and snippets.

@lexdene
Created December 10, 2013 08:50
Show Gist options
  • Save lexdene/7887559 to your computer and use it in GitHub Desktop.
Save lexdene/7887559 to your computer and use it in GitHub Desktop.
args = {
'_id': 'xxx',
'group': 123
}
cursor = db.table.find(args)
args.pop('_id')
data = list(cursor)
# 这样得到的data是没有_id = 'xxx'这个条件的查询结果
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment