Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: W. H. Wang <[email protected]>
  • Loading branch information
Dr-XYZ and mattwang44 authored Mar 8, 2025
1 parent 5fa7efb commit 55eb06e
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions library/random.po
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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 ""
Expand Down Expand Up @@ -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 ""
Expand Down Expand Up @@ -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"
Expand All @@ -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"
Expand Down

0 comments on commit 55eb06e

Please sign in to comment.