Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit441bf43

Browse files
StevenHsuYLmattwang44
authored andcommitted
Update controlflow.po
Update match section after Sync with CPython 3.10
1 parent134c413 commit441bf43

File tree

1 file changed

+6
-26
lines changed

1 file changed

+6
-26
lines changed

‎tutorial/controlflow.po

Lines changed: 6 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ msgid ""
1111
msgstr ""
1212
"Project-Id-Version:Python 3.10\n"
1313
"Report-Msgid-Bugs-To:\n"
14-
"POT-Creation-Date:2022-03-09 00:12+0000\n"
15-
"PO-Revision-Date:2022-06-09 02:11+0800\n"
14+
"POT-Creation-Date:2022-06-22 00:18+0000\n"
15+
"PO-Revision-Date:2022-07-05 15:44+0800\n"
1616
"Last-Translator:Steven Hsu <hsuhaochun@gmail.com>\n"
1717
"Language-Team:Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
1818
"tw)\n"
@@ -299,8 +299,9 @@ msgid ""
299299
msgstr""
300300
":keyword:`match` 陳述式會拿取一個運算式,並將其值與多個連續的型樣 (pattern) "
301301
"進行比較,這些型樣是以一個或多個 case 區塊來表示。表面上,這類似 C、Java 或 "
302-
"JavaScript(以及許多其他語言)中的 switch 陳述式,但它也可以將成分(序列元素"
303-
"或物件屬性)從該值中提取到變數中。"
302+
"JavaScript(以及許多其他語言)中的 switch 陳述式,但它與 Rust 或 Haskell 等語"
303+
"言中的型樣匹配 (pattern matching) 更為相近。只有第一個匹配成功的型樣會被執"
304+
"行,而它也可以將成分(序列元素或物件屬性)從值中提取到變數中。"
304305

305306
#:../../tutorial/controlflow.rst:261
306307
msgid""
@@ -490,8 +491,7 @@ msgid ""
490491
"For a more detailed explanation and additional examples, you can look into :"
491492
"pep:`636` which is written in a tutorial format."
492493
msgstr""
493-
"關於更詳細的解釋和其他範例,你可以閱讀 :pep:`636`,它是以教學的格式編寫而"
494-
"成。"
494+
"關於更詳細的解釋和其他範例,你可以閱讀 :pep:`636`,它是以教學的格式編寫而成。"
495495

496496
#:../../tutorial/controlflow.rst:420
497497
msgid"Defining Functions"
@@ -1344,23 +1344,3 @@ msgstr ""
13441344
"實際上,\\ *傳址呼叫 (call by object reference)* 的說法可能較為貼切。因為,若"
13451345
"傳遞的是一個可變物件時,呼叫者將看得見被呼叫者對物件做出的任何改變(例如被插"
13461346
"入 list 內的新項目)。"
1347-
1348-
#~ msgid ""
1349-
#~ "If you need to modify the sequence you are iterating over while inside "
1350-
#~ "the loop (for example to duplicate selected items), it is recommended "
1351-
#~ "that you first make a copy. Iterating over a sequence does not "
1352-
#~ "implicitly make a copy. The slice notation makes this especially "
1353-
#~ "convenient::"
1354-
#~ msgstr ""
1355-
#~ "如果你在迴圈中需要修改一個你正在疊代的序列(例如重複一些選擇的元素),那麼"
1356-
#~ "會建議你先建立一個序列的拷貝。疊代序列並不暗示建立新的拷貝。此時 slice 語"
1357-
#~ "法就讓這件事十分容易完成:\n"
1358-
#~ "\n"
1359-
#~ "::"
1360-
1361-
#~ msgid ""
1362-
#~ "With ``for w in words:``, the example would attempt to create an infinite "
1363-
#~ "list, inserting ``defenestrate`` over and over again."
1364-
#~ msgstr ""
1365-
#~ "在 ``for w in words:`` 的情況,這個例子會試著重覆不斷地插入 "
1366-
#~ "``defenestrate``,產生一個無限長的 list。"

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp