只是,为什么要这样做:
find([spec=None[, fields=None[, skip=0[, limit=0[, timeout=True[, snapshot=False[, tailable=False[, sort=None[, max_scan=None[, as_class=None[, slave_okay=False[, await_data=False[, partial=False[, manipulate=True[, read_preference=ReadPreference.PRIMARY[, exhaust=False[, compile_re=True[, **kwargs]]]]]]]]]]]]]]]]]])
这看起来丑陋且令人困惑,但出现在我遇到的每个 api 文档中,我可能缺乏一些基本的 python 知识。
请您参考如下方法:
这是从extended Backus-Naur form 借用的惯例.正如 Abhijit 上面所指出的,嵌套意味着可选参数等。
