@@ -16,7 +16,7 @@ msgid ""
16
16
msgstr ""
17
17
"Project-Id-Version : Python 3.7\n "
18
18
"Report-Msgid-Bugs-To : \n "
19
- "POT-Creation-Date : 2023-02-24 14:40 +0000\n "
19
+ "POT-Creation-Date : 2023-03-03 14:41 +0000\n "
20
20
"PO-Revision-Date : 2019-09-01 03:18+0000\n "
21
21
"
Last-Translator :
Freesand Leo <[email protected] >, 2023\n "
22
22
"Language-Team : Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n "
@@ -1150,15 +1150,15 @@ msgstr "``\"store_true\"``"
1150
1150
1151
1151
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:931
1152
1152
msgid "store ``True``"
1153
- msgstr ""
1153
+ msgstr "存储 ``True`` "
1154
1154
1155
1155
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:934
1156
1156
msgid "``\" store_false\" ``"
1157
1157
msgstr "``\" store_false\" ``"
1158
1158
1159
1159
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:934
1160
1160
msgid "store ``False``"
1161
- msgstr ""
1161
+ msgstr "存储 ``False`` "
1162
1162
1163
1163
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:940
1164
1164
msgid "``\" append_const\" ``"
@@ -1197,37 +1197,39 @@ msgstr ""
1197
1197
1198
1198
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:961
1199
1199
msgid "For example, when you call ::"
1200
- msgstr ""
1200
+ msgstr "例如,当你调用 :: "
1201
1201
1202
1202
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:965
1203
1203
msgid ""
1204
1204
"one of the first things :mod:`optparse` does is create the ``options`` "
1205
1205
"object::"
1206
- msgstr ""
1206
+ msgstr ":mod:`optparse` 首先会做的一件事情是创建 ``options`` 对象:: "
1207
1207
1208
1208
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:969
1209
1209
msgid "If one of the options in this parser is defined with ::"
1210
- msgstr ""
1210
+ msgstr "如果该解析器中的某个选项定义带有 :: "
1211
1211
1212
1212
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:973
1213
1213
msgid "and the command-line being parsed includes any of the following::"
1214
- msgstr ""
1214
+ msgstr "并且被解析的命令行包括以下任意一项:: "
1215
1215
1216
1216
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:980
1217
1217
msgid ""
1218
1218
"then :mod:`optparse`, on seeing this option, will do the equivalent of ::"
1219
- msgstr ""
1219
+ msgstr "那么 :mod:`optparse` 在看到此选项时,将执行这样的操作 :: "
1220
1220
1221
1221
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:984
1222
1222
msgid ""
1223
1223
"The :attr:`~Option.type` and :attr:`~Option.dest` option attributes are "
1224
1224
"almost as important as :attr:`~Option.action`, but :attr:`~Option.action` is"
1225
1225
" the only one that makes sense for *all* options."
1226
1226
msgstr ""
1227
+ ":attr:`~Option.type` 和 :attr:`~Option.dest` 选项属性几乎与 :attr:`~Option.action` "
1228
+ "一样重要,但 :attr:`~Option.action` 是唯一对 *所有* 选项都有意义的。"
1227
1229
1228
1230
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:992
1229
1231
msgid "Option attributes"
1230
- msgstr ""
1232
+ msgstr "选项属性 "
1231
1233
1232
1234
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:994
1233
1235
msgid ""
@@ -1236,6 +1238,8 @@ msgid ""
1236
1238
"not relevant to a particular option, or fail to pass a required option "
1237
1239
"attribute, :mod:`optparse` raises :exc:`OptionError`."
1238
1240
msgstr ""
1241
+ "下列选项属性可以作为关键字参数传给 :meth:`OptionParser.add_option`。 "
1242
+ "如果你传入一个与特定选项无关的选项属性,或是未能传入必要的选项属性,:mod:`optparse` 将会引发 :exc:`OptionError`。"
1239
1243
1240
1244
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1001
1241
1245
msgid "(default: ``\" store\" ``)"
0 commit comments