用_id查询
from pymongo.objectid import ObjectId ... posts.find_one({'_id':ObjectId(_id)})
降序排列
posts.find().sort([('_id',-1)])