10BC0 [po] auto sync · python/python-docs-zh-cn@5347bd4 · GitHub
[go: up one dir, main page]

Skip to content

Commit 5347bd4

Browse files
[po] auto sync
1 parent f7b4c4a commit 5347bd4

File tree

3 files changed

+18
-10
lines changed

3 files changed

+18
-10
lines changed

.stat.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"translation": "81.08%", "updated_at": "2025-03-22T23:55:42Z"}
1+
{"translation": "81.10%", "updated_at": "2025-03-23T01:19:55Z"}

library/doctest.po

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ msgstr ""
355355
msgid ""
356356
"There is also a command line shortcut for running :func:`testmod`, see "
357357
"section :ref:`doctest-cli`."
358-
msgstr ""
358+
msgstr "另外还有一个运行 :func:`testmod` 的命令行快捷方式,参见 :ref:`doctest-cli` 一节。"
359359

360360
#: ../../library/doctest.rst:179
361361
msgid ""
@@ -481,7 +481,7 @@ msgstr ""
481481
msgid ""
482482
"There is also a command line shortcut for running :func:`testfile`, see "
483483
"section :ref:`doctest-cli`."
484-
msgstr ""
484+
msgstr "另外还有一个运行 :func:`testfile` 的命令行快捷方式,参见 :ref:`doctest-cli` 一节。"
485485

486486
#: ../../library/doctest.rst:243
487487
msgid ""
@@ -491,22 +491,22 @@ msgstr "关于 :func:`testfile` 的更多信息,请参见 :ref:`doctest-basic-
491491

492492
#: ../../library/doctest.rst:249
493493
msgid "Command-line Usage"
494-
msgstr ""
494+
msgstr "命令行用法"
495495

496496
#: ../../library/doctest.rst:251
497497
msgid ""
498498
"The :mod:`doctest` module can be invoked as a script from the command line:"
499-
msgstr ""
499+
msgstr ":mod:`doctest` 模块可以在命令行下作为一个脚本来唤起:"
500500

501501
#: ../../library/doctest.rst:253
502502
msgid "python -m doctest [-v] [-o OPTION] [-f] file [file ...]"
503-
msgstr ""
503+
msgstr "python -m doctest [-v] [-o OPTION] [-f] file [file ...]"
504504

505505
#: ../../library/doctest.rst:261
506506
msgid ""
507507
"Detailed report of all examples tried is printed to standard output, along "
508508
"with assorted summaries at the end::"
509-
msgstr ""
509+
msgstr "所有尝试过的例子的详细报告将被打印到标准输出,最后还会带上各种总结::"
510510

511511
#: ../../library/doctest.rst:264
512512
msgid "python -m doctest -v example.py"
@@ -518,12 +518,15 @@ msgid ""
518518
":func:`testmod` on it. Note that this may not work correctly if the file is "
519519
"part of a package and imports other submodules from that package."
520520
msgstr ""
521+
"这会将 :file:`example.py` 作为独立模块导入并对其运行 :func:`testmod`。 "
522+
"请注意如果文件是某个包的一部分并且从那个包导入了其他子模块则此命令可能无法正确工作。"
521523

522524
#: ../../library/doctest.rst:270
523525
msgid ""
524526
"If the file name does not end with :file:`.py`, :mod:`!doctest` infers that "
525527
"it must be run with :func:`testfile` instead::"
526528
msgstr ""
529+
"如果文件名不是以 :file:`.py` 结尾,:mod:`!doctest` 将推断它必须改用 :func:`testfile` 来运行::"
527530

528531
#: ../../library/doctest.rst:273
529532
msgid "python -m doctest -v example.txt"
@@ -533,11 +536,11 @@ msgstr "python -m doctest -v example.txt"
533536
msgid ""
534537
"Option flags control various aspects of doctest's behavior, see section "
535538
":ref:`doctest-options`."
536-
msgstr ""
539+
msgstr "控制 doctest 行为的各种不同方面,参见 :ref:`doctest-options` 一节。"
537540

538541
#: ../../library/doctest.rst:284
539542
msgid "This is shorthand for ``-o FAIL_FAST``."
540-
msgstr ""
543+
msgstr "这是 ``-o FAIL_FAST`` 的简写形式。"
541544

542545
#: ../../library/doctest.rst:292
543546
msgid "How It Works"

library/http.server.po

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -752,6 +752,8 @@ msgid ""
752752
"interfaces. For example, the following command causes the server to bind to "
753753
"localhost only::"
754754
msgstr ""
755+
"指定一个它要绑定的特定地址。 IPv4 和 IPv6 地址均受到支持。 在默认情况下,服务器会将自己绑定到所有接口。 例如,以下命令将使服务器仅绑定 "
756+
"localhost::"
755757

756758
#: ../../library/http.server.rst:500
757759
msgid "python -m http.server --bind 127.0.0.1"
@@ -766,7 +768,7 @@ msgid ""
766768
"Specifies a directory to which it should serve the files. By default, the "
767769
"server uses the current directory. For example, the following command uses a"
768770
" specific directory::"
769-
msgstr ""
771+
msgstr "指定一个它要提供文件服务的目录。 在默认情况下,服务器会使用当前目录。 例如,以下命令将使用一个特定地址::"
770772

771773
#: ../../library/http.server.rst:513
772774
msgid "python -m http.server --directory /tmp/"
@@ -778,6 +780,7 @@ msgid ""
778780
"the server is conformant to HTTP/1.0. For example, the following command "
779781
"runs an HTTP/1.1 conformant server::"
780782
msgstr ""
783+
"指定一个服务器所采用的 HTTP 版本。 在默认情况下,服务器会采用 HTTP/1.0。 例如,以下命令将运行一个采用 HTTP/1.1 的服务器::"
781784

782785
#: ../../library/http.server.rst:523
783786
msgid "python -m http.server --protocol HTTP/1.1"
@@ -807,6 +810,8 @@ msgid ""
807810
" intended for use by untrusted clients and may be vulnerable to "
808811
"exploitation. Always use within a secure environment."
809812
msgstr ""
813+
":class:`CGIHTTPRequestHandler` 和 ``--cgi`` 命令行选项不适合不受信任的客户端使用且容易被恶意利用。 "
814+
"应当始终在安全的环境中使用。"
810815

811816
#: ../../library/http.server.rst:549
812817
msgid "Security considerations"

0 commit comments

Comments
 (0)
0