louisganlu 最近的时间轴更新
louisganlu

louisganlu

V2EX 第 236484 号会员,加入于 2017-06-21 12:21:56 +08:00
louisganlu 最近回复了
2018-05-30 16:09:39 +08:00
回复了 chenqh 创建的主题 Python 有使用过 Python tinydb 这个库的吗,求助
http://tinydb.readthedocs.io/en/latest/usage.html
The second, traditional way of constructing queries is as follows:

>>> from tinydb import where
>>> db.search(where('field') == 'value')
Using where('field') is a shorthand for the following code:

>>> db.search(Query()['field'] == 'value')
Accessing nested fields with this syntax can be achieved like this:

>>> db.search(where('birthday').year == 1900)
>>> db.search(where('birthday')['year'] == 1900)
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   3309 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 11ms · UTC 05:05 · PVG 13:05 · LAX 21:05 · JFK 00:05
Developed with CodeLauncher
♥ Do have faith in what you're doing.