python / python-docs-zh-cn

zh_CN translation of the Python documentation
https://docs.python.org/zh-cn/
431 stars 74 forks source link

python310, 311 内置函数`ascii`翻译错误 #306

Closed YanHuaSuiMei closed 1 year ago

YanHuaSuiMei commented 1 year ago

python3.10 内置函数 ascii 中文翻译

repr() 类似,返回一个字符串,表示对象的可打印形式, 但在 repr() 返回的字符串中,非 ASCII 字符会用 \x、\u 和 \U 进行转义。 生成的字符串类似于 Python 2 中 repr() 的返回结果。

python3.10 内置函数 ascii 原文

As repr(), return a string containing a printable representation of an object, but escape the non-ASCII characters in the string returned by repr() using \x, \u, or \U escapes. This generates a string similar to that returned by repr() in Python 2.

问题

加粗斜体内容翻译错误. python3.10, 3.11的翻译是错误的, python3.9的翻译是正确的.

python3.9 内置函数 ascii 中文翻译

repr() 类似,返回一个包含对象的可打印表示形式的字符串, 但是使用 \x、\u 和 \U 对 repr() 返回的字符串中非 ASCII 编码的字符进行转义。 生成的字符串和 Python 2 的 repr() 返回的结果相似。

WendaoLee commented 1 year ago

Fixed.