@@ -2413,12 +2413,14 @@ msgid ""
24132413"directly and not copied to a :class:`dict`. This is useful if for example "
24142414"``mapping`` is a dict subclass:"
24152415msgstr ""
2416+ "类似于 ``str.format(**mapping)``,不同之处在于 ``mapping`` 会被直接使用而不是复制到一个 "
2417+ ":class:`dict`。 适宜使用此方法的一个例子是当 ``mapping`` 为 dict 的子类的情况:"
24162418
24172419#: ../../library/stdtypes.rst:1646
24182420msgid ""
24192421"Like :meth:`~str.find`, but raise :exc:`ValueError` when the substring is "
24202422"not found."
2421- msgstr ""
2423+ msgstr "类似于 :meth:`~str.find`,但在找不到子类时会引发 :exc:`ValueError`。 "
24222424
24232425#: ../../library/stdtypes.rst:1652
24242426msgid ""
@@ -2427,6 +2429,9 @@ msgid ""
24272429" one of the following returns ``True``: ``c.isalpha()``, ``c.isdecimal()``, "
24282430"``c.isdigit()``, or ``c.isnumeric()``."
24292431msgstr ""
2432+ "如果字符串中至少有一个字符且所有字符均为字母或数字则返回真值,否则返回假值。 如果以下方法中的一个返回 ``True`` 则字符 ``c`` "
2433+ "为字母或数字: ``c.isalpha()``, ``c.isdecimal()``, ``c.isdigit()``, or "
2434+ "``c.isnumeric()``。"
24302435
24312436#: ../../library/stdtypes.rst:1660
24322437msgid ""
@@ -2437,13 +2442,16 @@ msgid ""
24372442"\" Ll\" , or \" Lo\" . Note that this is different from the \" Alphabetic\" "
24382443"property defined in the Unicode Standard."
24392444msgstr ""
2445+ "如果字符串中至少有一个字符且所有字符均为字母则返回真值,否则返回假值。 字母类字符是在 Unicode 字符数据库中被定义为 \" Letter\" "
2446+ "的字符,即一般分类特征属性为 \" Lm\" , \" Lt\" , \" Lu\" , \" Ll\" 或 \" Lo\" 其中之一。 请注意这不同于 Unicode"
2447+ " 标准所定义的 \" Alphabetic\" 特征属性。"
24402448
24412449#: ../../library/stdtypes.rst:1669
24422450msgid ""
24432451"Return true if the string is empty or all characters in the string are "
24442452"ASCII, false otherwise. ASCII characters have code points in the range "
24452453"U+0000-U+007F."
2446- msgstr ""
2454+ msgstr "如果字符串为空或所有字符均为 ASCII 字符则返回真值,否则返回假值。 ASCII 字符的码位范围为 U+0000-U+007F。 "
24472455
24482456#: ../../library/stdtypes.rst:1678
24492457msgid ""
@@ -2453,6 +2461,8 @@ msgid ""
24532461" ZERO. Formally a decimal character is a character in the Unicode General "
24542462"Category \" Nd\" ."
24552463msgstr ""
2464+ "如果字符串中至少有一个字符且所有字符均为十进制数字符则返回真值,否则返回假值。 十进制数字符是以 10 为基数的计数制会用来组成数值的字符,例如 "
2465+ "U+0660, ARABIC-INDIC DIGIT ZERO。 正式的定义为:十进制数字符就是 Unicode 一般分类 \" Nd\" 中的字符。"
24562466
24572467#: ../../library/stdtypes.rst:1688
24582468msgid ""
0 commit comments