Skip to content

Commit c1bb3fe

Browse files
authored
Apply suggestions from code review
1 parent 73c5cfc commit c1bb3fe

File tree

3 files changed

+8
-9
lines changed

3 files changed

+8
-9
lines changed

tutorial/controlflow.po

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1399,12 +1399,12 @@ msgid ""
13991399
"parrot('a thousand', state='pushing up the daisies') # 1 positional, 1 "
14001400
"keyword"
14011401
msgstr ""
1402-
"parrot(1000) # 1 個位置引數
1403-
parrot(voltage=1000) # 1 個關鍵字引數
1404-
parrot(voltage=1000000, action='VOOOOOM') # 2 個關鍵字引數
1405-
parrot(action='VOOOOOM', voltage=1000000) # 2 個關鍵字引數
1406-
parrot('a million', 'bereft of life', 'jump') # 3 個位置引數
1407-
parrot('a thousand', state='pushing up the daisies') # 1 個位置引數、1 個關鍵字引數"
1402+
"parrot(1000) # 1 個位置引數\n"
1403+
"parrot(voltage=1000) # 1 個關鍵字引數\n"
1404+
"parrot(voltage=1000000, action='VOOOOOM') # 2 個關鍵字引數\n"
1405+
"parrot(action='VOOOOOM', voltage=1000000) # 2 個關鍵字引數\n"
1406+
"parrot('a million', 'bereft of life', 'jump') # 3 個位置引數\n"
1407+
"parrot('a thousand', state='pushing up the daisies') # 1 個位置引數、1 個關鍵字引數\n"
14081408

14091409
#: ../../tutorial/controlflow.rst:677
14101410
msgid "but all the following calls would be invalid::"

tutorial/introduction.po

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -381,8 +381,7 @@ msgstr ""
381381
">>> s = 'First line.\\nSecond line.' # \\n 表示換行\n"
382382
">>> s # 沒有 print(),特殊字元會包含在字串中\n"
383383
"'First line.\\nSecond line.'\n"
384-
">>> print(s) # with print(), special characters are interpreted, so \\n "
385-
"produces new line\n"
384+
">>> print(s) # 有 print(),特殊字元會被直譯,所以 \\n 會產生新的一行\n"
386385
"First line.\n"
387386
"Second line."
388387

tutorial/modules.po

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1075,7 +1075,7 @@ msgstr ""
10751075
" \"reverse\", # !!! 現在指向 'reverse' 函式 !!!\n"
10761076
"]\n"
10771077
"\n"
1078-
"def reverse(msg: str): # 在 'from sound.effects import *' 的情況下\n"
1078+
"def reverse(msg: str): # <-- 在 'from sound.effects import *' 的情況下\n"
10791079
" return msg[::-1] # 這個名稱遮蔽了 'reverse.py' 子模組"
10801080

10811081
#: ../../tutorial/modules.rst:534

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy