|
7 | 7 | msgstr ""
|
8 | 8 | "Project-Id-Version: Python 3.10\n"
|
9 | 9 | "Report-Msgid-Bugs-To: \n"
|
10 |
| -"POT-Creation-Date: 2022-08-06 00:16+0000\n" |
| 10 | +"POT-Creation-Date: 2022-08-07 00:19+0000\n" |
11 | 11 | "PO-Revision-Date: 2018-05-23 16:10+0000\n"
|
12 | 12 | "Last-Translator: Adrian Liaw <adrianliaw2000@gmail.com>\n"
|
13 | 13 | "Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
|
@@ -72,88 +72,88 @@ msgid ""
|
72 | 72 | msgstr ""
|
73 | 73 |
|
74 | 74 | #: ../../library/sqlite3.rst:41
|
| 75 | +msgid "https://www.sqlite.org" |
| 76 | +msgstr "https://www.sqlite.org" |
| 77 | + |
| 78 | +#: ../../library/sqlite3.rst:40 |
| 79 | +msgid "" |
| 80 | +"The SQLite web page; the documentation describes the syntax and the " |
| 81 | +"available data types for the supported SQL dialect." |
| 82 | +msgstr "" |
| 83 | + |
| 84 | +#: ../../library/sqlite3.rst:44 |
| 85 | +msgid "https://www.w3schools.com/sql/" |
| 86 | +msgstr "https://www.w3schools.com/sql/" |
| 87 | + |
| 88 | +#: ../../library/sqlite3.rst:44 |
| 89 | +msgid "Tutorial, reference and examples for learning SQL syntax." |
| 90 | +msgstr "" |
| 91 | + |
| 92 | +#: ../../library/sqlite3.rst:46 |
| 93 | +msgid ":pep:`249` - Database API Specification 2.0" |
| 94 | +msgstr "" |
| 95 | + |
| 96 | +#: ../../library/sqlite3.rst:47 |
| 97 | +msgid "PEP written by Marc-André Lemburg." |
| 98 | +msgstr "PEP 由 Marc-André Lemburg 撰寫。" |
| 99 | + |
| 100 | +#: ../../library/sqlite3.rst:53 |
75 | 101 | msgid "Tutorial"
|
76 | 102 | msgstr ""
|
77 | 103 |
|
78 |
| -#: ../../library/sqlite3.rst:43 |
| 104 | +#: ../../library/sqlite3.rst:55 |
79 | 105 | msgid ""
|
80 | 106 | "To use the module, start by creating a :class:`Connection` object that "
|
81 | 107 | "represents the database. Here the data will be stored in the :file:`example."
|
82 | 108 | "db` file::"
|
83 | 109 | msgstr ""
|
84 | 110 |
|
85 |
| -#: ../../library/sqlite3.rst:50 |
| 111 | +#: ../../library/sqlite3.rst:62 |
86 | 112 | msgid ""
|
87 | 113 | "The special path name ``:memory:`` can be provided to create a temporary "
|
88 | 114 | "database in RAM."
|
89 | 115 | msgstr ""
|
90 | 116 |
|
91 |
| -#: ../../library/sqlite3.rst:53 |
| 117 | +#: ../../library/sqlite3.rst:65 |
92 | 118 | msgid ""
|
93 | 119 | "Once a :class:`Connection` has been established, create a :class:`Cursor` "
|
94 | 120 | "object and call its :meth:`~Cursor.execute` method to perform SQL commands::"
|
95 | 121 | msgstr ""
|
96 | 122 |
|
97 |
| -#: ../../library/sqlite3.rst:72 |
| 123 | +#: ../../library/sqlite3.rst:84 |
98 | 124 | msgid ""
|
99 | 125 | "The saved data is persistent: it can be reloaded in a subsequent session "
|
100 | 126 | "even after restarting the Python interpreter::"
|
101 | 127 | msgstr ""
|
102 | 128 |
|
103 |
| -#: ../../library/sqlite3.rst:79 |
| 129 | +#: ../../library/sqlite3.rst:91 |
104 | 130 | msgid "At this point, our database only contains one row::"
|
105 | 131 | msgstr ""
|
106 | 132 |
|
107 |
| -#: ../../library/sqlite3.rst:85 |
| 133 | +#: ../../library/sqlite3.rst:97 |
108 | 134 | msgid ""
|
109 | 135 | "The result is a one-item :class:`tuple`: one row, with one column. Now, let "
|
110 | 136 | "us insert three more rows of data, using :meth:`~Cursor.executemany`::"
|
111 | 137 | msgstr ""
|
112 | 138 |
|
113 |
| -#: ../../library/sqlite3.rst:97 |
| 139 | +#: ../../library/sqlite3.rst:109 |
114 | 140 | msgid ""
|
115 | 141 | "Notice that we used ``?`` placeholders to bind *data* to the query. Always "
|
116 | 142 | "use placeholders instead of :ref:`string formatting <tut-formatting>` to "
|
117 | 143 | "bind Python values to SQL statements, to avoid `SQL injection attacks`_. See "
|
118 | 144 | "the :ref:`placeholders how-to <sqlite3-placeholders>` for more details."
|
119 | 145 | msgstr ""
|
120 | 146 |
|
121 |
| -#: ../../library/sqlite3.rst:103 |
| 147 | +#: ../../library/sqlite3.rst:115 |
122 | 148 | msgid ""
|
123 | 149 | "Then, retrieve the data by iterating over the result of a ``SELECT`` "
|
124 | 150 | "statement::"
|
125 | 151 | msgstr ""
|
126 | 152 |
|
127 |
| -#: ../../library/sqlite3.rst:113 |
| 153 | +#: ../../library/sqlite3.rst:125 |
128 | 154 | msgid "You've now created an SQLite database using the :mod:`!sqlite3` module."
|
129 | 155 | msgstr ""
|
130 | 156 |
|
131 |
| -#: ../../library/sqlite3.rst:121 |
132 |
| -msgid "https://www.sqlite.org" |
133 |
| -msgstr "https://www.sqlite.org" |
134 |
| - |
135 |
| -#: ../../library/sqlite3.rst:120 |
136 |
| -msgid "" |
137 |
| -"The SQLite web page; the documentation describes the syntax and the " |
138 |
| -"available data types for the supported SQL dialect." |
139 |
| -msgstr "" |
140 |
| - |
141 |
| -#: ../../library/sqlite3.rst:124 |
142 |
| -msgid "https://www.w3schools.com/sql/" |
143 |
| -msgstr "https://www.w3schools.com/sql/" |
144 |
| - |
145 |
| -#: ../../library/sqlite3.rst:124 |
146 |
| -msgid "Tutorial, reference and examples for learning SQL syntax." |
147 |
| -msgstr "" |
148 |
| - |
149 |
| -#: ../../library/sqlite3.rst:126 |
150 |
| -msgid ":pep:`249` - Database API Specification 2.0" |
151 |
| -msgstr "" |
152 |
| - |
153 |
| -#: ../../library/sqlite3.rst:127 |
154 |
| -msgid "PEP written by Marc-André Lemburg." |
155 |
| -msgstr "PEP 由 Marc-André Lemburg 撰寫。" |
156 |
| - |
157 | 157 | #: ../../library/sqlite3.rst:133
|
158 | 158 | msgid "Reference"
|
159 | 159 | msgstr ""
|
|
0 commit comments