Skip to content

Commit

Permalink
Update string.md
Browse files Browse the repository at this point in the history
  • Loading branch information
matyhtf authored Aug 19, 2024
1 parent 64010f1 commit d9f853e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/cn/python/string.md
Original file line number Diff line number Diff line change
Expand Up @@ -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` 类型
Expand Down

0 comments on commit d9f853e

Please sign in to comment.