Created
December 10, 2013 08:50
-
-
Save lexdene/7887559 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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