File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1239,7 +1239,7 @@ msgid ""
12391239"The other possibility is to create a function that converts the type to the "
12401240"string representation and register the function with "
12411241":meth:`register_adapter`."
1242- msgstr ""
1242+ msgstr "另一种可能的做法是创建一个将该类型转换为字符串表示的函数并使用 :meth:`register_adapter` 注册该函数。 "
12431243
12441244#: /home/travis/build/python/cpython-doc-catalog/Doc/library/sqlite3.rst:946
12451245msgid ""
@@ -1248,6 +1248,9 @@ msgid ""
12481248"suppose we want to store :class:`datetime.datetime` objects not in ISO "
12491249"representation, but as a Unix timestamp."
12501250msgstr ""
1251+ ":mod:`sqlite3` 模块有两个适配器可用于 Python 的内置 :class:`datetime.date` 和 "
1252+ ":class:`datetime.datetime` 类型。 现在假设我们想要存储 :class:`datetime.datetime` "
1253+ "对象,但不是表示为 ISO 格式,而是表示为 Unix 时间戳。"
12511254
12521255#: /home/travis/build/python/cpython-doc-catalog/Doc/library/sqlite3.rst:955
12531256msgid "Converting SQLite values to custom Python types"
@@ -1259,6 +1262,8 @@ msgid ""
12591262"it really useful we need to make the Python to SQLite to Python roundtrip "
12601263"work."
12611264msgstr ""
1265+ "编写适配器让你可以将定制的 Python 类型发送给 SQLite。 但要令它真正有用,我们需要实现从 Python 到 SQLite 再回到 "
1266+ "Python 的双向转换。"
12621267
12631268#: /home/travis/build/python/cpython-doc-catalog/Doc/library/sqlite3.rst:960
12641269msgid "Enter converters."
You can’t perform that action at this time.
0 commit comments