@@ -10,7 +10,7 @@ msgid ""
10
10
msgstr ""
11
11
"Project-Id-Version : Python 3.10\n "
12
12
"Report-Msgid-Bugs-To : \n "
13
- "POT-Creation-Date : 2021-10-28 17:11+0000 \n "
13
+ "POT-Creation-Date : 2022-01-14 13:34+0800 \n "
14
14
"PO-Revision-Date : 2022-01-14 13:26+0800\n "
15
15
"Last-Translator : Matt Wang <mattwang44@gmail.com>\n "
16
16
"Language-Team : Chinese - TAIWAN (https://github.com/python/python-docs-zh- "
@@ -964,7 +964,7 @@ msgstr ""
964
964
"此屬性為 :meth:`__missing__` 方法所使用。如果有引數被傳入建構函式,則此屬性會"
965
965
"被初始化成第一個引數,如未提供引數則被初始化為 ``None``。"
966
966
967
- #: ../../library/collections.rst:757 ../../library/collections.rst:1154
967
+ #: ../../library/collections.rst:757 ../../library/collections.rst:1156
968
968
msgid ""
969
969
"Added merge (``|``) and update (``|=``) operators, specified in :pep:`584`."
970
970
msgstr "新增合併 (``|``) 和更新 (``|=``) 運算子,請見 :pep:`584`。"
@@ -1397,23 +1397,21 @@ msgstr ""
1397
1397
msgid ""
1398
1398
"Move an existing *key* to either end of an ordered dictionary. The item is "
1399
1399
"moved to the right end if *last* is true (the default) or to the beginning "
1400
- "if *last* is false. Raises :exc:`KeyError` if the *key* does not exist:: "
1400
+ "if *last* is false. Raises :exc:`KeyError` if the *key* does not exist:"
1401
1401
msgstr ""
1402
1402
"將現有的 *key* 移動到 ordered dictionary 的任一端。如果 *last* 為真值(此為預"
1403
1403
"設值)則將元素移至右端;如果 *last* 為假值則將元素移至左端。如果 *key* 不存在"
1404
- "則會引發 :exc:`KeyError`:\n"
1405
- "\n"
1406
- "::"
1404
+ "則會引發 :exc:`KeyError`:"
1407
1405
1408
- #: ../../library/collections.rst:1135
1406
+ #: ../../library/collections.rst:1137
1409
1407
msgid ""
1410
1408
"In addition to the usual mapping methods, ordered dictionaries also support "
1411
1409
"reverse iteration using :func:`reversed`."
1412
1410
msgstr ""
1413
1411
"除了普通的對映方法,ordered dictionary 還支援了透過 :func:`reversed` 來做倒序"
1414
1412
"疊代。"
1415
1413
1416
- #: ../../library/collections.rst:1138
1414
+ #: ../../library/collections.rst:1140
1417
1415
msgid ""
1418
1416
"Equality tests between :class:`OrderedDict` objects are order-sensitive and "
1419
1417
"are implemented as ``list(od1.items())==list(od2.items())``. Equality tests "
@@ -1427,27 +1425,27 @@ msgstr ""
1427
1425
"和其他 :class:`~collections.abc.Mapping` 物件間的相等性運算則像普通字典一樣不"
1428
1426
"考慮順序性,這使得 :class:`OrderedDict` 可於任何字典可使用的時機中被替換掉。"
1429
1427
1430
- #: ../../library/collections.rst:1145
1428
+ #: ../../library/collections.rst:1147
1431
1429
msgid ""
1432
1430
"The items, keys, and values :term:`views <dictionary view>` of :class:"
1433
1431
"`OrderedDict` now support reverse iteration using :func:`reversed`."
1434
1432
msgstr ""
1435
1433
":class:`OrderedDict` 的項 (item)、鍵與值之\\ :term:`視圖 <dictionary view>`"
1436
1434
"\\ 現在可透過 :func:`reversed` 來倒序疊代。"
1437
1435
1438
- #: ../../library/collections.rst:1149
1436
+ #: ../../library/collections.rst:1151
1439
1437
msgid ""
1440
1438
"With the acceptance of :pep:`468`, order is retained for keyword arguments "
1441
1439
"passed to the :class:`OrderedDict` constructor and its :meth:`update` method."
1442
1440
msgstr ""
1443
1441
"隨著 :pep:`468` 被核可,被傳入給 :class:`OrderedDict` 建構函式與其 :meth:"
1444
1442
"`update` 方法的關鍵字引數之順序被保留了下來。"
1445
1443
1446
- #: ../../library/collections.rst:1159
1444
+ #: ../../library/collections.rst:1161
1447
1445
msgid ":class:`OrderedDict` Examples and Recipes"
1448
1446
msgstr ":class:`OrderedDict` 範例與用法"
1449
1447
1450
- #: ../../library/collections.rst:1161
1448
+ #: ../../library/collections.rst:1163
1451
1449
msgid ""
1452
1450
"It is straightforward to create an ordered dictionary variant that remembers "
1453
1451
"the order the keys were *last* inserted. If a new entry overwrites an "
@@ -1459,19 +1457,19 @@ msgstr ""
1459
1457
"\n"
1460
1458
"::"
1461
1459
1462
- #: ../../library/collections.rst:1173
1460
+ #: ../../library/collections.rst:1175
1463
1461
msgid ""
1464
1462
"An :class:`OrderedDict` would also be useful for implementing variants of :"
1465
1463
"func:`functools.lru_cache`:"
1466
1464
msgstr ""
1467
1465
":class:`OrderedDict` 在實現一個 :func:`functools.lru_cache` 的變形版本時也非"
1468
1466
"常有用:"
1469
1467
1470
- #: ../../library/collections.rst:1271
1468
+ #: ../../library/collections.rst:1273
1471
1469
msgid ":class:`UserDict` objects"
1472
1470
msgstr ":class:`UserDict` 物件"
1473
1471
1474
- #: ../../library/collections.rst:1273
1472
+ #: ../../library/collections.rst:1275
1475
1473
msgid ""
1476
1474
"The class, :class:`UserDict` acts as a wrapper around dictionary objects. "
1477
1475
"The need for this class has been partially supplanted by the ability to "
@@ -1482,7 +1480,7 @@ msgstr ""
1482
1480
"`dict` 建立子類別,這個類別的需求已部分被滿足,不過這個類別使用起來更方便,因"
1483
1481
"為被包裝的字典可以作為其屬性來存取。"
1484
1482
1485
- #: ../../library/collections.rst:1281
1483
+ #: ../../library/collections.rst:1283
1486
1484
msgid ""
1487
1485
"Class that simulates a dictionary. The instance's contents are kept in a "
1488
1486
"regular dictionary, which is accessible via the :attr:`data` attribute of :"
@@ -1494,23 +1492,23 @@ msgstr ""
1494
1492
"`data` 屬性來做存取。如果有提供 *initialdata*\\ ,\\ :attr:`data` 屬性會被初"
1495
1493
"始化為其值;要注意指到 *initialdata* 的參照不會被保留,使其可被用於其他目的。"
1496
1494
1497
- #: ../../library/collections.rst:1287
1495
+ #: ../../library/collections.rst:1289
1498
1496
msgid ""
1499
1497
"In addition to supporting the methods and operations of mappings, :class:"
1500
1498
"`UserDict` instances provide the following attribute:"
1501
1499
msgstr ""
1502
1500
"除了支援作為對映所需的方法與操作,\\ :class:`UserDict` 實例提供了以下屬性:"
1503
1501
1504
- #: ../../library/collections.rst:1292
1502
+ #: ../../library/collections.rst:1294
1505
1503
msgid ""
1506
1504
"A real dictionary used to store the contents of the :class:`UserDict` class."
1507
1505
msgstr "一個真實的字典,用於儲存 :class:`UserDict` 類別的資料內容。"
1508
1506
1509
- #: ../../library/collections.rst:1298
1507
+ #: ../../library/collections.rst:1300
1510
1508
msgid ":class:`UserList` objects"
1511
1509
msgstr ":class:`UserList` 物件"
1512
1510
1513
- #: ../../library/collections.rst:1300
1511
+ #: ../../library/collections.rst:1302
1514
1512
msgid ""
1515
1513
"This class acts as a wrapper around list objects. It is a useful base class "
1516
1514
"for your own list-like classes which can inherit from them and override "
@@ -1521,7 +1519,7 @@ msgstr ""
1521
1519
"入新方法來定義你所需的一個類似於 list 的類別。如此一來,我們可以為 list 加入"
1522
1520
"新的特性。"
1523
1521
1524
- #: ../../library/collections.rst:1305
1522
+ #: ../../library/collections.rst:1307
1525
1523
msgid ""
1526
1524
"The need for this class has been partially supplanted by the ability to "
1527
1525
"subclass directly from :class:`list`; however, this class can be easier to "
@@ -1530,7 +1528,7 @@ msgstr ""
1530
1528
"因為已經可以直接自 :class:`list` 建立子類別,這個類別的需求已部分被滿足,不過"
1531
1529
"這個類別使用起來更方便,因為被包裝的 list 可以作為其屬性來存取。"
1532
1530
1533
- #: ../../library/collections.rst:1311
1531
+ #: ../../library/collections.rst:1313
1534
1532
msgid ""
1535
1533
"Class that simulates a list. The instance's contents are kept in a regular "
1536
1534
"list, which is accessible via the :attr:`data` attribute of :class:"
@@ -1543,21 +1541,21 @@ msgstr ""
1543
1541
"list ``[]``。\\ *list* 可以是任何 iterable,例如一個真實的 Python list 或是一"
1544
1542
"個 :class:`UserList` 物件。"
1545
1543
1546
- #: ../../library/collections.rst:1317
1544
+ #: ../../library/collections.rst:1319
1547
1545
msgid ""
1548
1546
"In addition to supporting the methods and operations of mutable sequences, :"
1549
1547
"class:`UserList` instances provide the following attribute:"
1550
1548
msgstr ""
1551
1549
"除了支援可變序列的方法與操作,\\ :class:`UserList` 實例提供了以下屬性:"
1552
1550
1553
- #: ../../library/collections.rst:1322
1551
+ #: ../../library/collections.rst:1324
1554
1552
msgid ""
1555
1553
"A real :class:`list` object used to store the contents of the :class:"
1556
1554
"`UserList` class."
1557
1555
msgstr ""
1558
1556
"一個真實的 :class:`list` 物件,用於儲存 :class:`UserList` 類別的資料內容。"
1559
1557
1560
- #: ../../library/collections.rst:1325
1558
+ #: ../../library/collections.rst:1327
1561
1559
msgid ""
1562
1560
"**Subclassing requirements:** Subclasses of :class:`UserList` are expected "
1563
1561
"to offer a constructor which can be called with either no arguments or one "
@@ -1571,7 +1569,7 @@ msgstr ""
1571
1569
"例,為了達成上述目的,它假設建構函式可傳入單一參數來呼叫,該參數即是做為數據"
1572
1570
"來源的一個序列物件。"
1573
1571
1574
- #: ../../library/collections.rst:1332
1572
+ #: ../../library/collections.rst:1334
1575
1573
msgid ""
1576
1574
"If a derived class does not wish to comply with this requirement, all of the "
1577
1575
"special methods supported by this class will need to be overridden; please "
@@ -1581,11 +1579,11 @@ msgstr ""
1581
1579
"如果希望一個自此獲得的子類別不遵從上述要求,那所有該類別支援的特殊方法則必須"
1582
1580
"被覆寫;請參考原始碼來理解在這情況下哪些方法是必須提供的。"
1583
1581
1584
- #: ../../library/collections.rst:1338
1582
+ #: ../../library/collections.rst:1340
1585
1583
msgid ":class:`UserString` objects"
1586
1584
msgstr ":class:`UserString` 物件"
1587
1585
1588
- #: ../../library/collections.rst:1340
1586
+ #: ../../library/collections.rst:1342
1589
1587
msgid ""
1590
1588
"The class, :class:`UserString` acts as a wrapper around string objects. The "
1591
1589
"need for this class has been partially supplanted by the ability to subclass "
@@ -1596,7 +1594,7 @@ msgstr ""
1596
1594
"建立子類別,這個類別的需求已經部分被滿足,不過這個類別使用起來更方便,因為被"
1597
1595
"包裝的字串可以作為其屬性來存取。"
1598
1596
1599
- #: ../../library/collections.rst:1348
1597
+ #: ../../library/collections.rst:1350
1600
1598
msgid ""
1601
1599
"Class that simulates a string object. The instance's content is kept in a "
1602
1600
"regular string object, which is accessible via the :attr:`data` attribute "
@@ -1608,21 +1606,21 @@ msgstr ""
1608
1606
"的 :attr:`data` 屬性來做存取。實例內容被初始化為 *seq* 的複製,\\ *seq* 引數"
1609
1607
"可以是任何可被內建函式 :func:`str` 轉換成字串的物件。"
1610
1608
1611
- #: ../../library/collections.rst:1355
1609
+ #: ../../library/collections.rst:1357
1612
1610
msgid ""
1613
1611
"In addition to supporting the methods and operations of strings, :class:"
1614
1612
"`UserString` instances provide the following attribute:"
1615
1613
msgstr ""
1616
1614
"除了支援字串的方法和操作以外,\\ :class:`UserString` 實例也提供了以下屬性:"
1617
1615
1618
- #: ../../library/collections.rst:1360
1616
+ #: ../../library/collections.rst:1362
1619
1617
msgid ""
1620
1618
"A real :class:`str` object used to store the contents of the :class:"
1621
1619
"`UserString` class."
1622
1620
msgstr ""
1623
1621
"一個真實的 :class:`str` 物件,用來儲存 :class:`UserString` 類別的資料內容。"
1624
1622
1625
- #: ../../library/collections.rst:1363
1623
+ #: ../../library/collections.rst:1365
1626
1624
msgid ""
1627
1625
"New methods ``__getnewargs__``, ``__rmod__``, ``casefold``, ``format_map``, "
1628
1626
"``isprintable``, and ``maketrans``."
0 commit comments