@@ -1132,7 +1132,7 @@ msgid ""
11321132"[0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89]"
11331133msgstr ""
11341134">>> def fib2(n): # 回傳到 n 為止的費氏數列\n"
1135- "... \"\"\" 回傳包含到 n 為止的費氏數列的列表 。\"\"\" \n"
1135+ "... \"\"\" 回傳包含到 n 為止的費氏數列的串列 。\"\"\" \n"
11361136"... result = []\n"
11371137"... a, b = 0, 1\n"
11381138"... while a < n:\n"
@@ -1399,15 +1399,12 @@ msgid ""
13991399"parrot('a thousand', state='pushing up the daisies') # 1 positional, 1 "
14001400"keyword"
14011401msgstr ""
1402- "parrot(1000) # 1 positional "
1403- "argument\n"
1404- "parrot(voltage=1000) # 1 個關鍵字引數\n"
1405- "parrot(voltage=1000000, action='VOOOOOM') # 2 個關鍵字引數\n"
1406- "parrot(action='VOOOOOM', voltage=1000000) # 2 個關鍵字引數\n"
1407- "parrot('a million', 'bereft of life', 'jump') # 3 positional "
1408- "arguments\n"
1409- "parrot('a thousand', state='pushing up the daisies') # 1 positional, 1 "
1410- "keyword"
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 個關鍵字引數"
14111408
14121409#: ../../tutorial/controlflow.rst:677
14131410msgid "but all the following calls would be invalid::"
@@ -1422,8 +1419,7 @@ msgid ""
14221419"parrot(actor='John Cleese') # unknown keyword argument"
14231420msgstr ""
14241421"parrot() # 缺少必要引數\n"
1425- "parrot(voltage=5.0, 'dead') # non-keyword argument after a keyword "
1426- "argument\n"
1422+ "parrot(voltage=5.0, 'dead') # 關鍵字引數後面的非關鍵字引數\n"
14271423"parrot(110, voltage=220) # 同一個引數有重複值\n"
14281424"parrot(actor='John Cleese') # 未知的關鍵字引數"
14291425
@@ -1992,8 +1988,7 @@ msgstr ""
19921988">>> list(range(3, 6)) # 使用分離引數的一般呼叫\n"
19931989"[3, 4, 5]\n"
19941990">>> args = [3, 6]\n"
1995- ">>> list(range(*args)) # call with arguments unpacked from a "
1996- "list\n"
1991+ ">>> list(range(*args)) # 以從串列解包而得的引數呼叫\n"
19971992"[3, 4, 5]"
19981993
19991994#: ../../tutorial/controlflow.rst:965
0 commit comments