From 55eb06e2638ef336d3bc10d36a2f06e8e27c02e3 Mon Sep 17 00:00:00 2001 From: "Dr.XYZ" Date: Sat, 8 Mar 2025 10:32:59 +0800 Subject: [PATCH] Apply suggestions from code review Co-authored-by: W. H. Wang --- library/random.po | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/library/random.po b/library/random.po index eed481b095..c9acd05970 100644 --- a/library/random.po +++ b/library/random.po @@ -138,8 +138,8 @@ msgid "" "contention and poor performance. Consider using separate instances of :class:" "`Random` per thread instead." msgstr "" -"全局隨機數產生器和 :class:`Random` 的實例是執行緒安全的。然而,在自由執行緒構" -"建中,對全局產生器或同一 :class:`Random` 實例的並發調用可能會遇到爭用和性能不" +"全域隨機數產生器和 :class:`Random` 的實例是執行緒安全的。然而,在自由執行緒構" +"建中,對全域產生器或同一 :class:`Random` 實例的並行呼叫可能會遇到爭用和性能不" "佳。請考慮改為每個執行緒使用單獨的 :class:`Random` 實例。" #: ../../library/random.rst:70 @@ -966,7 +966,7 @@ msgid "" "print(f'hypothesis that there is no difference between the drug and the " "placebo.')" msgstr "" -"# 範例來自 Dennis Shasha 和 Manda Wilson 的 \\\"Statistics is Easy\\\"\n" +"# 範例來自 Dennis Shasha 和 Manda Wilson 的 \"Statistics is Easy\"\n" "from statistics import fmean as mean\n" "from random import shuffle\n" "\n" @@ -1142,7 +1142,7 @@ msgstr "" " return tuple(pool[i] for i in indices)\n" "\n" "def random_combination_with_replacement(iterable, r):\n" -" \"有放回地選擇 r 個元素。結果按可迭代物件排序。\"\n" +" \"有放回地選擇 r 個元素。結果按可疊代物件排序。\"\n" " # 結果將在 set(itertools.combinations_with_replacement(iterable, r)) 中\n" " pool = tuple(iterable)\n" " n = len(pool)\n" @@ -1251,11 +1251,11 @@ msgstr "" #: ../../library/random.rst:713 msgid "Command-line usage" -msgstr "命令行使用" +msgstr "命令列用法" #: ../../library/random.rst:717 msgid "The :mod:`!random` module can be executed from the command line." -msgstr ":mod:`!random` 模組可以從命令行執行。" +msgstr ":mod:`!random` 模組可以從命令列執行。" #: ../../library/random.rst:719 msgid "" @@ -1304,11 +1304,11 @@ msgstr "浮點數:與 :option:`--float` 相同。" #: ../../library/random.rst:756 msgid "Command-line example" -msgstr "命令行範例" +msgstr "命令列範例" #: ../../library/random.rst:758 msgid "Here are some examples of the :mod:`!random` command-line interface:" -msgstr "以下是 :mod:`!random` 命令行界面的一些範例:" +msgstr "以下是 :mod:`!random` 命令列介面的一些範例:" #: ../../library/random.rst:760 msgid "" @@ -1343,8 +1343,8 @@ msgid "" "3.1942323316565915" msgstr "" "$ # 隨機選擇一個\n" -"$ python -m random egg bacon sausage spam \\\"Lobster Thermidor aux " -"crevettes with a Mornay sauce\\\"\n" +"$ python -m random egg bacon sausage spam \"Lobster Thermidor aux " +"crevettes with a Mornay sauce\"\n" "Lobster Thermidor aux crevettes with a Mornay sauce\n" "\n" "$ # 隨機整數\n" @@ -1356,8 +1356,8 @@ msgstr "" "1.7080016272295635\n" "\n" "$ # 使用明確的引數\n" -"$ python -m random --choice egg bacon sausage spam \\\"Lobster Thermidor " -"aux crevettes with a Mornay sauce\\\"\n" +"$ python -m random --choice egg bacon sausage spam \"Lobster Thermidor " +"aux crevettes with a Mornay sauce\"\n" "egg\n" "\n" "$ python -m random --integer 6\n"