From d9f853e7701ddd8d2bd02bebc1c8cbc449df9e1c Mon Sep 17 00:00:00 2001 From: "Tianfeng.Han" Date: Mon, 19 Aug 2024 12:23:41 +0800 Subject: [PATCH] Update string.md --- docs/cn/python/string.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/cn/python/string.md b/docs/cn/python/string.md index 77e8bab..7a897cf 100644 --- a/docs/cn/python/string.md +++ b/docs/cn/python/string.md @@ -44,7 +44,7 @@ if s3 == "hello": print(s1[2]) ``` -请注意 `phpy.String`返回的格式与 `bytes` 一致,是一个 `uchar int`。 +请注意 `phpy.String`返回的格式与 `bytes` 一致,是一个 `uchar`。 但与 `str` 不同,`str` 会处理 `UTF-8` 编码返回一个 `UTF-8` 的宽字符,例如 `str('中国')[0]` 返回的是 `中`。 ## 转为 `Python` 的 `bytes` 类型