@@ -904,26 +904,30 @@ msgid ""
904904":c:func:`PyUnicode_New`. Since Unicode strings are supposed to be "
905905"immutable, the string must not be shared, or have been hashed yet."
906906msgstr ""
907+ "将一个字符写入到字符串。 字符串必须通过 :c:func:`PyUnicode_New` 创建。 由于 Unicode "
908+ "字符串应当是不可变的,因此该字符串不能被共享,或是被哈希。"
907909
908910#: ../../c-api/unicode.rst:640
909911msgid ""
910912"This function checks that *unicode* is a Unicode object, that the index is "
911913"not out of bounds, and that the object can be modified safely (i.e. that it "
912914"its reference count is one)."
913- msgstr ""
915+ msgstr "该函数将检查 *unicode* 是否为 Unicode 对象,索引是否未越界,并且对象是否可被安全地修改(即其引用计数为一)。 "
914916
915917#: ../../c-api/unicode.rst:649
916918msgid ""
917919"Read a character from a string. This function checks that *unicode* is a "
918920"Unicode object and the index is not out of bounds, in contrast to "
919921":c:func:`PyUnicode_READ_CHAR`, which performs no error checking."
920922msgstr ""
923+ "从字符串读取一个字符。 该函数将检查 *unicode* 是否为 Unicode 对象且索引是否未越界,这不同于 "
924+ ":c:func:`PyUnicode_READ_CHAR`,后者不会执行任何错误检查。"
921925
922926#: ../../c-api/unicode.rst:659
923927msgid ""
924928"Return a substring of *str*, from character index *start* (included) to "
925929"character index *end* (excluded). Negative indices are not supported."
926- msgstr ""
930+ msgstr "返回 *str* 的一个子串,从字符索引 *start* (包括) 到字符索引 *end* (不包括)。 不支持负索引号。 "
927931
928932#: ../../c-api/unicode.rst:668
929933msgid ""
0 commit comments