Python 操作 mongodb 找到记录中最后一条 2022-01-18 本文已影响0人 孙庚辛 ret = mytable.find().sort([('_id', -1)]).limit(1) print(ret[0])