9
9
msgstr ""
10
10
"Project-Id-Version : Python 3.13\n "
11
11
"Report-Msgid-Bugs-To : \n "
12
- "POT-Creation-Date : 2025-02-18 00:13+0000\n "
12
+ "POT-Creation-Date : 2025-02-21 00:13+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- "
@@ -1710,27 +1710,74 @@ msgid ""
1710
1710
"list."
1711
1711
msgstr ""
1712
1712
1713
- #: ../../c-api/unicode.rst:1404
1713
+ #: ../../c-api/unicode.rst:1401 ../../c-api/unicode.rst:1411
1714
+ #: ../../c-api/unicode.rst:1432 ../../c-api/unicode.rst:1445
1715
+ #, fuzzy
1716
+ msgid "On error, return ``NULL`` with an exception set."
1717
+ msgstr "如果編解碼器引發例外則回傳 ``NULL``。"
1718
+
1719
+ #: ../../c-api/unicode.rst:1403
1720
+ msgid "Equivalent to :py:meth:`str.split`."
1721
+ msgstr ""
1722
+
1723
+ #: ../../c-api/unicode.rst:1408
1724
+ msgid ""
1725
+ "Similar to :c:func:`PyUnicode_Split`, but splitting will be done beginning "
1726
+ "at the end of the string."
1727
+ msgstr ""
1728
+
1729
+ #: ../../c-api/unicode.rst:1413
1730
+ msgid "Equivalent to :py:meth:`str.rsplit`."
1731
+ msgstr ""
1732
+
1733
+ #: ../../c-api/unicode.rst:1418
1714
1734
msgid ""
1715
1735
"Split a Unicode string at line breaks, returning a list of Unicode strings. "
1716
1736
"CRLF is considered to be one line break. If *keepends* is ``0``, the Line "
1717
1737
"break characters are not included in the resulting strings."
1718
1738
msgstr ""
1719
1739
1720
- #: ../../c-api/unicode.rst:1411
1740
+ #: ../../c-api/unicode.rst:1425
1741
+ msgid ""
1742
+ "Split a Unicode string at the first occurrence of *sep*, and return a 3-"
1743
+ "tuple containing the part before the separator, the separator itself, and "
1744
+ "the part after the separator. If the separator is not found, return a 3-"
1745
+ "tuple containing the string itself, followed by two empty strings."
1746
+ msgstr ""
1747
+
1748
+ #: ../../c-api/unicode.rst:1430 ../../c-api/unicode.rst:1443
1749
+ msgid "*sep* must not be empty."
1750
+ msgstr ""
1751
+
1752
+ #: ../../c-api/unicode.rst:1434
1753
+ msgid "Equivalent to :py:meth:`str.partition`."
1754
+ msgstr ""
1755
+
1756
+ #: ../../c-api/unicode.rst:1439
1757
+ msgid ""
1758
+ "Similar to :c:func:`PyUnicode_Partition`, but split a Unicode string at the "
1759
+ "last occurrence of *sep*. If the separator is not found, return a 3-tuple "
1760
+ "containing two empty strings, followed by the string itself."
1761
+ msgstr ""
1762
+
1763
+ #: ../../c-api/unicode.rst:1447
1764
+ msgid "Equivalent to :py:meth:`str.rpartition`."
1765
+ msgstr ""
1766
+
1767
+ #: ../../c-api/unicode.rst:1452
1721
1768
msgid ""
1722
1769
"Join a sequence of strings using the given *separator* and return the "
1723
1770
"resulting Unicode string."
1724
1771
msgstr ""
1725
1772
1726
- #: ../../c-api/unicode.rst:1418
1773
+ #: ../../c-api/unicode.rst:1459
1727
1774
msgid ""
1728
1775
"Return ``1`` if *substr* matches ``unicode[start:end]`` at the given tail "
1729
1776
"end (*direction* == ``-1`` means to do a prefix match, *direction* == ``1`` "
1730
1777
"a suffix match), ``0`` otherwise. Return ``-1`` if an error occurred."
1731
1778
msgstr ""
1732
1779
1733
- #: ../../c-api/unicode.rst:1426
1780
+ #: ../../c-api/unicode.rst:1467
1734
1781
msgid ""
1735
1782
"Return the first position of *substr* in ``unicode[start:end]`` using the "
1736
1783
"given *direction* (*direction* == ``1`` means to do a forward search, "
@@ -1739,7 +1786,7 @@ msgid ""
1739
1786
"``-2`` indicates that an error occurred and an exception has been set."
1740
1787
msgstr ""
1741
1788
1742
- #: ../../c-api/unicode.rst:1436
1789
+ #: ../../c-api/unicode.rst:1477
1743
1790
msgid ""
1744
1791
"Return the first position of the character *ch* in ``unicode[start:end]`` "
1745
1792
"using the given *direction* (*direction* == ``1`` means to do a forward "
@@ -1749,37 +1796,37 @@ msgid ""
1749
1796
"set."
1750
1797
msgstr ""
1751
1798
1752
- #: ../../c-api/unicode.rst:1444
1799
+ #: ../../c-api/unicode.rst:1485
1753
1800
msgid ""
1754
1801
"*start* and *end* are now adjusted to behave like ``unicode[start:end]``."
1755
1802
msgstr ""
1756
1803
1757
- #: ../../c-api/unicode.rst:1451
1804
+ #: ../../c-api/unicode.rst:1492
1758
1805
msgid ""
1759
1806
"Return the number of non-overlapping occurrences of *substr* in "
1760
1807
"``unicode[start:end]``. Return ``-1`` if an error occurred."
1761
1808
msgstr ""
1762
1809
1763
- #: ../../c-api/unicode.rst:1458
1810
+ #: ../../c-api/unicode.rst:1499
1764
1811
msgid ""
1765
1812
"Replace at most *maxcount* occurrences of *substr* in *unicode* with "
1766
1813
"*replstr* and return the resulting Unicode object. *maxcount* == ``-1`` "
1767
1814
"means replace all occurrences."
1768
1815
msgstr ""
1769
1816
1770
- #: ../../c-api/unicode.rst:1465
1817
+ #: ../../c-api/unicode.rst:1506
1771
1818
msgid ""
1772
1819
"Compare two strings and return ``-1``, ``0``, ``1`` for less than, equal, "
1773
1820
"and greater than, respectively."
1774
1821
msgstr ""
1775
1822
1776
- #: ../../c-api/unicode.rst:1468
1823
+ #: ../../c-api/unicode.rst:1509
1777
1824
msgid ""
1778
1825
"This function returns ``-1`` upon failure, so one should call :c:func:"
1779
1826
"`PyErr_Occurred` to check for errors."
1780
1827
msgstr ""
1781
1828
1782
- #: ../../c-api/unicode.rst:1474
1829
+ #: ../../c-api/unicode.rst:1515
1783
1830
msgid ""
1784
1831
"Compare a Unicode object with a char buffer which is interpreted as being "
1785
1832
"UTF-8 or ASCII encoded and return true (``1``) if they are equal, or false "
@@ -1788,66 +1835,66 @@ msgid ""
1788
1835
"is returned."
1789
1836
msgstr ""
1790
1837
1791
- #: ../../c-api/unicode.rst:1481 ../../c-api/unicode.rst:1502
1838
+ #: ../../c-api/unicode.rst:1522 ../../c-api/unicode.rst:1543
1792
1839
msgid "This function does not raise exceptions."
1793
1840
msgstr "此函式不會引發例外。"
1794
1841
1795
- #: ../../c-api/unicode.rst:1488
1842
+ #: ../../c-api/unicode.rst:1529
1796
1843
msgid ""
1797
1844
"Similar to :c:func:`PyUnicode_EqualToUTF8AndSize`, but compute *string* "
1798
1845
"length using :c:func:`!strlen`. If the Unicode object contains null "
1799
1846
"characters, false (``0``) is returned."
1800
1847
msgstr ""
1801
1848
1802
- #: ../../c-api/unicode.rst:1497
1849
+ #: ../../c-api/unicode.rst:1538
1803
1850
msgid ""
1804
1851
"Compare a Unicode object, *unicode*, with *string* and return ``-1``, ``0``, "
1805
1852
"``1`` for less than, equal, and greater than, respectively. It is best to "
1806
1853
"pass only ASCII-encoded strings, but the function interprets the input "
1807
1854
"string as ISO-8859-1 if it contains non-ASCII characters."
1808
1855
msgstr ""
1809
1856
1810
- #: ../../c-api/unicode.rst:1507
1857
+ #: ../../c-api/unicode.rst:1548
1811
1858
msgid "Rich compare two Unicode strings and return one of the following:"
1812
1859
msgstr ""
1813
1860
1814
- #: ../../c-api/unicode.rst:1509
1861
+ #: ../../c-api/unicode.rst:1550
1815
1862
msgid "``NULL`` in case an exception was raised"
1816
1863
msgstr ""
1817
1864
1818
- #: ../../c-api/unicode.rst:1510
1865
+ #: ../../c-api/unicode.rst:1551
1819
1866
msgid ":c:data:`Py_True` or :c:data:`Py_False` for successful comparisons"
1820
1867
msgstr ""
1821
1868
1822
- #: ../../c-api/unicode.rst:1511
1869
+ #: ../../c-api/unicode.rst:1552
1823
1870
msgid ":c:data:`Py_NotImplemented` in case the type combination is unknown"
1824
1871
msgstr ""
1825
1872
1826
- #: ../../c-api/unicode.rst:1513
1873
+ #: ../../c-api/unicode.rst:1554
1827
1874
msgid ""
1828
1875
"Possible values for *op* are :c:macro:`Py_GT`, :c:macro:`Py_GE`, :c:macro:"
1829
1876
"`Py_EQ`, :c:macro:`Py_NE`, :c:macro:`Py_LT`, and :c:macro:`Py_LE`."
1830
1877
msgstr ""
1831
1878
1832
- #: ../../c-api/unicode.rst:1519
1879
+ #: ../../c-api/unicode.rst:1560
1833
1880
msgid ""
1834
1881
"Return a new string object from *format* and *args*; this is analogous to "
1835
1882
"``format % args``."
1836
1883
msgstr ""
1837
1884
1838
- #: ../../c-api/unicode.rst:1525
1885
+ #: ../../c-api/unicode.rst:1566
1839
1886
msgid ""
1840
1887
"Check whether *substr* is contained in *unicode* and return true or false "
1841
1888
"accordingly."
1842
1889
msgstr ""
1843
1890
1844
- #: ../../c-api/unicode.rst:1528
1891
+ #: ../../c-api/unicode.rst:1569
1845
1892
msgid ""
1846
1893
"*substr* has to coerce to a one element Unicode string. ``-1`` is returned "
1847
1894
"if there was an error."
1848
1895
msgstr ""
1849
1896
1850
- #: ../../c-api/unicode.rst:1534
1897
+ #: ../../c-api/unicode.rst:1575
1851
1898
msgid ""
1852
1899
"Intern the argument :c:expr:`*p_unicode` in place. The argument must be the "
1853
1900
"address of a pointer variable pointing to a Python Unicode string object. "
@@ -1858,47 +1905,47 @@ msgid ""
1858
1905
"interns it."
1859
1906
msgstr ""
1860
1907
1861
- #: ../../c-api/unicode.rst:1541
1908
+ #: ../../c-api/unicode.rst:1582
1862
1909
msgid ""
1863
1910
"(Clarification: even though there is a lot of talk about references, think "
1864
1911
"of this function as reference-neutral. You must own the object you pass in; "
1865
1912
"after the call you no longer own the passed-in reference, but you newly own "
1866
1913
"the result.)"
1867
1914
msgstr ""
1868
1915
1869
- #: ../../c-api/unicode.rst:1546
1916
+ #: ../../c-api/unicode.rst:1587
1870
1917
msgid ""
1871
1918
"This function never raises an exception. On error, it leaves its argument "
1872
1919
"unchanged without interning it."
1873
1920
msgstr ""
1874
1921
1875
- #: ../../c-api/unicode.rst:1549
1922
+ #: ../../c-api/unicode.rst:1590
1876
1923
msgid ""
1877
1924
"Instances of subclasses of :py:class:`str` may not be interned, that is, :c:"
1878
1925
"expr:`PyUnicode_CheckExact(*p_unicode)` must be true. If it is not, then -- "
1879
1926
"as with any other error -- the argument is left unchanged."
1880
1927
msgstr ""
1881
1928
1882
- #: ../../c-api/unicode.rst:1553
1929
+ #: ../../c-api/unicode.rst:1594
1883
1930
msgid ""
1884
1931
"Note that interned strings are not “immortal”. You must keep a reference to "
1885
1932
"the result to benefit from interning."
1886
1933
msgstr ""
1887
1934
1888
- #: ../../c-api/unicode.rst:1559
1935
+ #: ../../c-api/unicode.rst:1600
1889
1936
msgid ""
1890
1937
"A combination of :c:func:`PyUnicode_FromString` and :c:func:"
1891
1938
"`PyUnicode_InternInPlace`, meant for statically allocated strings."
1892
1939
msgstr ""
1893
1940
1894
- #: ../../c-api/unicode.rst:1562
1941
+ #: ../../c-api/unicode.rst:1603
1895
1942
msgid ""
1896
1943
"Return a new (\" owned\" ) reference to either a new Unicode string object "
1897
1944
"that has been interned, or an earlier interned string object with the same "
1898
1945
"value."
1899
1946
msgstr ""
1900
1947
1901
- #: ../../c-api/unicode.rst:1566
1948
+ #: ../../c-api/unicode.rst:1607
1902
1949
msgid ""
1903
1950
"Python may keep a reference to the result, or make it :term:`immortal`, "
1904
1951
"preventing it from being garbage-collected promptly. For interning an "
@@ -1907,6 +1954,6 @@ msgid ""
1907
1954
"`PyUnicode_InternInPlace` directly."
1908
1955
msgstr ""
1909
1956
1910
- #: ../../c-api/unicode.rst:1574
1957
+ #: ../../c-api/unicode.rst:1615
1911
1958
msgid "Strings interned this way are made :term:`immortal`."
1912
1959
msgstr ""
0 commit comments