@@ -1132,7 +1132,7 @@ msgid ""
1132
1132
"[0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89]"
1133
1133
msgstr ""
1134
1134
">>> def fib2(n): # 回傳到 n 為止的費氏數列\n"
1135
- "... \"\"\" 回傳包含到 n 為止的費氏數列的列表 。\"\"\" \n"
1135
+ "... \"\"\" 回傳包含到 n 為止的費氏數列的串列 。\"\"\" \n"
1136
1136
"... result = []\n"
1137
1137
"... a, b = 0, 1\n"
1138
1138
"... while a < n:\n"
@@ -1399,15 +1399,12 @@ msgid ""
1399
1399
"parrot('a thousand', state='pushing up the daisies') # 1 positional, 1 "
1400
1400
"keyword"
1401
1401
msgstr ""
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 個關鍵字引數"
1411
1408
1412
1409
#: ../../tutorial/controlflow.rst:677
1413
1410
msgid "but all the following calls would be invalid::"
@@ -1422,8 +1419,7 @@ msgid ""
1422
1419
"parrot(actor='John Cleese') # unknown keyword argument"
1423
1420
msgstr ""
1424
1421
"parrot() # 缺少必要引數\n"
1425
- "parrot(voltage=5.0, 'dead') # non-keyword argument after a keyword "
1426
- "argument\n"
1422
+ "parrot(voltage=5.0, 'dead') # 關鍵字引數後面的非關鍵字引數\n"
1427
1423
"parrot(110, voltage=220) # 同一個引數有重複值\n"
1428
1424
"parrot(actor='John Cleese') # 未知的關鍵字引數"
1429
1425
@@ -1992,8 +1988,7 @@ msgstr ""
1992
1988
">>> list(range(3, 6)) # 使用分離引數的一般呼叫\n"
1993
1989
"[3, 4, 5]\n"
1994
1990
">>> args = [3, 6]\n"
1995
- ">>> list(range(*args)) # call with arguments unpacked from a "
1996
- "list\n"
1991
+ ">>> list(range(*args)) # 以從串列解包而得的引數呼叫\n"
1997
1992
"[3, 4, 5]"
1998
1993
1999
1994
#: ../../tutorial/controlflow.rst:965
0 commit comments