9
9
msgstr ""
10
10
"Project-Id-Version :Python 3.13\n "
11
11
"Report-Msgid-Bugs-To :\n "
12
- "POT-Creation-Date :2025-05-30 00:16 +0000\n "
12
+ "POT-Creation-Date :2025-05-31 00:15 +0000\n "
13
13
"PO-Revision-Date :2018-05-23 14:08+0000\n "
14
14
"Last-Translator :Adrian Liaw <adrianliaw2000@gmail.com>\n "
15
15
"Language-Team :Chinese - TAIWAN (https://github.com/python/python-docs-zh- "
@@ -1718,30 +1718,26 @@ msgid ""
1718
1718
"c:macro:`!CP_ACP` code page to get the MBCS encoder."
1719
1719
msgstr ""
1720
1720
1721
- #: ../../c-api/unicode.rst:1407
1722
- msgid "Methods & Slots"
1723
- msgstr ""
1724
-
1725
- #: ../../c-api/unicode.rst:1413
1721
+ #: ../../c-api/unicode.rst:1409
1726
1722
msgid "Methods and Slot Functions"
1727
1723
msgstr ""
1728
1724
1729
- #: ../../c-api/unicode.rst:1415
1725
+ #: ../../c-api/unicode.rst:1411
1730
1726
msgid ""
1731
1727
"The following APIs are capable of handling Unicode objects and strings on "
1732
1728
"input (we refer to them as strings in the descriptions) and return Unicode "
1733
1729
"objects or integers as appropriate."
1734
1730
msgstr ""
1735
1731
1736
- #: ../../c-api/unicode.rst:1419
1732
+ #: ../../c-api/unicode.rst:1415
1737
1733
msgid "They all return ``NULL`` or ``-1`` if an exception occurs."
1738
1734
msgstr "如果發生例外,則回傳 ``NULL`` 或 ``-1``。"
1739
1735
1740
- #: ../../c-api/unicode.rst:1424
1736
+ #: ../../c-api/unicode.rst:1420
1741
1737
msgid "Concat two strings giving a new Unicode string."
1742
1738
msgstr ""
1743
1739
1744
- #: ../../c-api/unicode.rst:1429
1740
+ #: ../../c-api/unicode.rst:1425
1745
1741
msgid ""
1746
1742
"Split a string giving a list of Unicode strings. If *sep* is ``NULL``, "
1747
1743
"splitting will be done at all whitespace substrings. Otherwise, splits "
@@ -1750,73 +1746,73 @@ msgid ""
1750
1746
"list."
1751
1747
msgstr ""
1752
1748
1753
- #: ../../c-api/unicode.rst:1434 ../../c-api/unicode.rst:1444
1754
- #: ../../c-api/unicode.rst:1465 ../../c-api/unicode.rst:1478
1749
+ #: ../../c-api/unicode.rst:1430 ../../c-api/unicode.rst:1440
1750
+ #: ../../c-api/unicode.rst:1461 ../../c-api/unicode.rst:1474
1755
1751
msgid "On error, return ``NULL`` with an exception set."
1756
1752
msgstr "於錯誤發生時回傳 ``NULL`` 並設定例外。"
1757
1753
1758
- #: ../../c-api/unicode.rst:1436
1754
+ #: ../../c-api/unicode.rst:1432
1759
1755
msgid "Equivalent to :py:meth:`str.split`."
1760
1756
msgstr "等價於 :py:meth:`str.split`。"
1761
1757
1762
- #: ../../c-api/unicode.rst:1441
1758
+ #: ../../c-api/unicode.rst:1437
1763
1759
msgid ""
1764
1760
"Similar to :c:func:`PyUnicode_Split`, but splitting will be done beginning "
1765
1761
"at the end of the string."
1766
1762
msgstr ""
1767
1763
1768
- #: ../../c-api/unicode.rst:1446
1764
+ #: ../../c-api/unicode.rst:1442
1769
1765
msgid "Equivalent to :py:meth:`str.rsplit`."
1770
1766
msgstr "等價於 :py:meth:`str.rsplit`。"
1771
1767
1772
- #: ../../c-api/unicode.rst:1451
1768
+ #: ../../c-api/unicode.rst:1447
1773
1769
msgid ""
1774
1770
"Split a Unicode string at line breaks, returning a list of Unicode strings. "
1775
1771
"CRLF is considered to be one line break. If *keepends* is ``0``, the Line "
1776
1772
"break characters are not included in the resulting strings."
1777
1773
msgstr ""
1778
1774
1779
- #: ../../c-api/unicode.rst:1458
1775
+ #: ../../c-api/unicode.rst:1454
1780
1776
msgid ""
1781
1777
"Split a Unicode string at the first occurrence of *sep*, and return a 3-"
1782
1778
"tuple containing the part before the separator, the separator itself, and "
1783
1779
"the part after the separator. If the separator is not found, return a 3-"
1784
1780
"tuple containing the string itself, followed by two empty strings."
1785
1781
msgstr ""
1786
1782
1787
- #: ../../c-api/unicode.rst:1463 ../../c-api/unicode.rst:1476
1783
+ #: ../../c-api/unicode.rst:1459 ../../c-api/unicode.rst:1472
1788
1784
msgid "*sep* must not be empty."
1789
1785
msgstr "*sep* 不得為空。"
1790
1786
1791
- #: ../../c-api/unicode.rst:1467
1787
+ #: ../../c-api/unicode.rst:1463
1792
1788
msgid "Equivalent to :py:meth:`str.partition`."
1793
1789
msgstr "等價於 :py:meth:`str.partition`。"
1794
1790
1795
- #: ../../c-api/unicode.rst:1472
1791
+ #: ../../c-api/unicode.rst:1468
1796
1792
msgid ""
1797
1793
"Similar to :c:func:`PyUnicode_Partition`, but split a Unicode string at the "
1798
1794
"last occurrence of *sep*. If the separator is not found, return a 3-tuple "
1799
1795
"containing two empty strings, followed by the string itself."
1800
1796
msgstr ""
1801
1797
1802
- #: ../../c-api/unicode.rst:1480
1798
+ #: ../../c-api/unicode.rst:1476
1803
1799
msgid "Equivalent to :py:meth:`str.rpartition`."
1804
1800
msgstr "等價於 :py:meth:`str.rpartition`。"
1805
1801
1806
- #: ../../c-api/unicode.rst:1485
1802
+ #: ../../c-api/unicode.rst:1481
1807
1803
msgid ""
1808
1804
"Join a sequence of strings using the given *separator* and return the "
1809
1805
"resulting Unicode string."
1810
1806
msgstr ""
1811
1807
1812
- #: ../../c-api/unicode.rst:1492
1808
+ #: ../../c-api/unicode.rst:1488
1813
1809
msgid ""
1814
1810
"Return ``1`` if *substr* matches ``unicode[start:end]`` at the given tail "
1815
1811
"end (*direction* == ``-1`` means to do a prefix match, *direction* == ``1`` "
1816
1812
"a suffix match), ``0`` otherwise. Return ``-1`` if an error occurred."
1817
1813
msgstr ""
1818
1814
1819
- #: ../../c-api/unicode.rst:1500
1815
+ #: ../../c-api/unicode.rst:1496
1820
1816
msgid ""
1821
1817
"Return the first position of *substr* in ``unicode[start:end]`` using the "
1822
1818
"given *direction* (*direction* == ``1`` means to do a forward search, "
@@ -1825,7 +1821,7 @@ msgid ""
1825
1821
"``-2`` indicates that an error occurred and an exception has been set."
1826
1822
msgstr ""
1827
1823
1828
- #: ../../c-api/unicode.rst:1510
1824
+ #: ../../c-api/unicode.rst:1506
1829
1825
msgid ""
1830
1826
"Return the first position of the character *ch* in ``unicode[start:end]`` "
1831
1827
"using the given *direction* (*direction* == ``1`` means to do a forward "
@@ -1835,37 +1831,37 @@ msgid ""
1835
1831
"set."
1836
1832
msgstr ""
1837
1833
1838
- #: ../../c-api/unicode.rst:1518
1834
+ #: ../../c-api/unicode.rst:1514
1839
1835
msgid ""
1840
1836
"*start* and *end* are now adjusted to behave like ``unicode[start:end]``."
1841
1837
msgstr ""
1842
1838
1843
- #: ../../c-api/unicode.rst:1525
1839
+ #: ../../c-api/unicode.rst:1521
1844
1840
msgid ""
1845
1841
"Return the number of non-overlapping occurrences of *substr* in "
1846
1842
"``unicode[start:end]``. Return ``-1`` if an error occurred."
1847
1843
msgstr ""
1848
1844
1849
- #: ../../c-api/unicode.rst:1532
1845
+ #: ../../c-api/unicode.rst:1528
1850
1846
msgid ""
1851
1847
"Replace at most *maxcount* occurrences of *substr* in *unicode* with "
1852
1848
"*replstr* and return the resulting Unicode object. *maxcount* == ``-1`` "
1853
1849
"means replace all occurrences."
1854
1850
msgstr ""
1855
1851
1856
- #: ../../c-api/unicode.rst:1539
1852
+ #: ../../c-api/unicode.rst:1535
1857
1853
msgid ""
1858
1854
"Compare two strings and return ``-1``, ``0``, ``1`` for less than, equal, "
1859
1855
"and greater than, respectively."
1860
1856
msgstr ""
1861
1857
1862
- #: ../../c-api/unicode.rst:1542
1858
+ #: ../../c-api/unicode.rst:1538
1863
1859
msgid ""
1864
1860
"This function returns ``-1`` upon failure, so one should call :c:func:"
1865
1861
"`PyErr_Occurred` to check for errors."
1866
1862
msgstr ""
1867
1863
1868
- #: ../../c-api/unicode.rst:1548
1864
+ #: ../../c-api/unicode.rst:1544
1869
1865
msgid ""
1870
1866
"Compare a Unicode object with a char buffer which is interpreted as being "
1871
1867
"UTF-8 or ASCII encoded and return true (``1``) if they are equal, or false "
@@ -1874,66 +1870,66 @@ msgid ""
1874
1870
"is returned."
1875
1871
msgstr ""
1876
1872
1877
- #: ../../c-api/unicode.rst:1555 ../../c-api/unicode.rst:1576
1873
+ #: ../../c-api/unicode.rst:1551 ../../c-api/unicode.rst:1572
1878
1874
msgid "This function does not raise exceptions."
1879
1875
msgstr "此函式不會引發例外。"
1880
1876
1881
- #: ../../c-api/unicode.rst:1562
1877
+ #: ../../c-api/unicode.rst:1558
1882
1878
msgid ""
1883
1879
"Similar to :c:func:`PyUnicode_EqualToUTF8AndSize`, but compute *string* "
1884
1880
"length using :c:func:`!strlen`. If the Unicode object contains null "
1885
1881
"characters, false (``0``) is returned."
1886
1882
msgstr ""
1887
1883
1888
- #: ../../c-api/unicode.rst:1571
1884
+ #: ../../c-api/unicode.rst:1567
1889
1885
msgid ""
1890
1886
"Compare a Unicode object, *unicode*, with *string* and return ``-1``, ``0``, "
1891
1887
"``1`` for less than, equal, and greater than, respectively. It is best to "
1892
1888
"pass only ASCII-encoded strings, but the function interprets the input "
1893
1889
"string as ISO-8859-1 if it contains non-ASCII characters."
1894
1890
msgstr ""
1895
1891
1896
- #: ../../c-api/unicode.rst:1581
1892
+ #: ../../c-api/unicode.rst:1577
1897
1893
msgid "Rich compare two Unicode strings and return one of the following:"
1898
1894
msgstr ""
1899
1895
1900
- #: ../../c-api/unicode.rst:1583
1896
+ #: ../../c-api/unicode.rst:1579
1901
1897
msgid "``NULL`` in case an exception was raised"
1902
1898
msgstr ""
1903
1899
1904
- #: ../../c-api/unicode.rst:1584
1900
+ #: ../../c-api/unicode.rst:1580
1905
1901
msgid ":c:data:`Py_True` or :c:data:`Py_False` for successful comparisons"
1906
1902
msgstr ""
1907
1903
1908
- #: ../../c-api/unicode.rst:1585
1904
+ #: ../../c-api/unicode.rst:1581
1909
1905
msgid ":c:data:`Py_NotImplemented` in case the type combination is unknown"
1910
1906
msgstr ""
1911
1907
1912
- #: ../../c-api/unicode.rst:1587
1908
+ #: ../../c-api/unicode.rst:1583
1913
1909
msgid ""
1914
1910
"Possible values for *op* are :c:macro:`Py_GT`, :c:macro:`Py_GE`, :c:macro:"
1915
1911
"`Py_EQ`, :c:macro:`Py_NE`, :c:macro:`Py_LT`, and :c:macro:`Py_LE`."
1916
1912
msgstr ""
1917
1913
1918
- #: ../../c-api/unicode.rst:1593
1914
+ #: ../../c-api/unicode.rst:1589
1919
1915
msgid ""
1920
1916
"Return a new string object from *format* and *args*; this is analogous to "
1921
1917
"``format % args``."
1922
1918
msgstr ""
1923
1919
1924
- #: ../../c-api/unicode.rst:1599
1920
+ #: ../../c-api/unicode.rst:1595
1925
1921
msgid ""
1926
1922
"Check whether *substr* is contained in *unicode* and return true or false "
1927
1923
"accordingly."
1928
1924
msgstr ""
1929
1925
1930
- #: ../../c-api/unicode.rst:1602
1926
+ #: ../../c-api/unicode.rst:1598
1931
1927
msgid ""
1932
1928
"*substr* has to coerce to a one element Unicode string. ``-1`` is returned "
1933
1929
"if there was an error."
1934
1930
msgstr ""
1935
1931
1936
- #: ../../c-api/unicode.rst:1608
1932
+ #: ../../c-api/unicode.rst:1604
1937
1933
msgid ""
1938
1934
"Intern the argument :c:expr:`*p_unicode` in place. The argument must be the "
1939
1935
"address of a pointer variable pointing to a Python Unicode string object. "
@@ -1944,47 +1940,47 @@ msgid ""
1944
1940
"interns it."
1945
1941
msgstr ""
1946
1942
1947
- #: ../../c-api/unicode.rst:1615
1943
+ #: ../../c-api/unicode.rst:1611
1948
1944
msgid ""
1949
1945
"(Clarification: even though there is a lot of talk about references, think "
1950
1946
"of this function as reference-neutral. You must own the object you pass in; "
1951
1947
"after the call you no longer own the passed-in reference, but you newly own "
1952
1948
"the result.)"
1953
1949
msgstr ""
1954
1950
1955
- #: ../../c-api/unicode.rst:1620
1951
+ #: ../../c-api/unicode.rst:1616
1956
1952
msgid ""
1957
1953
"This function never raises an exception. On error, it leaves its argument "
1958
1954
"unchanged without interning it."
1959
1955
msgstr ""
1960
1956
1961
- #: ../../c-api/unicode.rst:1623
1957
+ #: ../../c-api/unicode.rst:1619
1962
1958
msgid ""
1963
1959
"Instances of subclasses of :py:class:`str` may not be interned, that is, :c:"
1964
1960
"expr:`PyUnicode_CheckExact(*p_unicode)` must be true. If it is not, then -- "
1965
1961
"as with any other error -- the argument is left unchanged."
1966
1962
msgstr ""
1967
1963
1968
- #: ../../c-api/unicode.rst:1627
1964
+ #: ../../c-api/unicode.rst:1623
1969
1965
msgid ""
1970
1966
"Note that interned strings are not “immortal”. You must keep a reference to "
1971
1967
"the result to benefit from interning."
1972
1968
msgstr ""
1973
1969
1974
- #: ../../c-api/unicode.rst:1633
1970
+ #: ../../c-api/unicode.rst:1629
1975
1971
msgid ""
1976
1972
"A combination of :c:func:`PyUnicode_FromString` and :c:func:"
1977
1973
"`PyUnicode_InternInPlace`, meant for statically allocated strings."
1978
1974
msgstr ""
1979
1975
1980
- #: ../../c-api/unicode.rst:1636
1976
+ #: ../../c-api/unicode.rst:1632
1981
1977
msgid ""
1982
1978
"Return a new (\" owned\" ) reference to either a new Unicode string object "
1983
1979
"that has been interned, or an earlier interned string object with the same "
1984
1980
"value."
1985
1981
msgstr ""
1986
1982
1987
- #: ../../c-api/unicode.rst:1640
1983
+ #: ../../c-api/unicode.rst:1636
1988
1984
msgid ""
1989
1985
"Python may keep a reference to the result, or make it :term:`immortal`, "
1990
1986
"preventing it from being garbage-collected promptly. For interning an "