File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -937,7 +937,7 @@ msgstr "举例来说,如果你的脚本是 ``/usr/bin/foo``:"
937
937
msgid ""
938
938
"The following two methods can be used to print and get the ``version`` "
939
939
"string:"
940
- msgstr ""
940
+ msgstr "下列两个方法可被用来打印和获取 ``version`` 字符串: "
941
941
942
942
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:692
943
943
msgid ""
@@ -946,16 +946,19 @@ msgid ""
946
946
"``%prog`` in ``self.version`` is replaced with the name of the current "
947
947
"program. Does nothing if ``self.version`` is empty or undefined."
948
948
msgstr ""
949
+ "将当前程序的版本消息 (``self.version``) 打印到 *file* (默认为 stdout)。 就像 "
950
+ ":meth:`print_usage` 一样,任何在 ``self.version`` 中出现的 ``%prog`` 将被替换为当前程序的名称。 如果 "
951
+ "``self.version`` 为空或未定义则不做任何操作。"
949
952
950
953
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:699
951
954
msgid ""
952
955
"Same as :meth:`print_version` but returns the version string instead of "
953
956
"printing it."
954
- msgstr ""
957
+ msgstr "与 :meth:`print_version` 相似但是会返回版本字符串而不是打印它。 "
955
958
956
959
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:706
957
960
msgid "How :mod:`optparse` handles errors"
958
- msgstr ""
961
+ msgstr ":mod:`optparse` 如何处理错误handles errors "
959
962
960
963
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:708
961
964
msgid ""
You can’t perform that action at this time.
0 commit comments