Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc4cd66a

Browse files
[po] auto sync
1 parente86d682 commitc4cd66a

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

‎.stat.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"translation":"83.04%","updated_at":"2025-04-22T15:18:36Z"}
1+
{"translation":"83.04%","updated_at":"2025-04-23T02:43:46Z"}

‎whatsnew/3.0.po

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,17 @@
77
# Fei Yin <icebirds@163.com>, 2018
88
# ppcfish <ppcfish@gmail.com>, 2019
99
# Lu <lu2github@gmail.com>, 2022
10-
# Freesand Leo <yuqinju@163.com>, 2024
1110
# Rafael Fontenelle <rffontenelle@gmail.com>, 2025
11+
# Freesand Leo <yuqinju@163.com>, 2025
1212
#
1313
#,fuzzy
1414
msgid ""
1515
msgstr ""
1616
"Project-Id-Version:Python 3.9\n"
1717
"Report-Msgid-Bugs-To:\n"
18-
"POT-Creation-Date:2025-02-07 16:40+0000\n"
18+
"POT-Creation-Date:2025-04-18 16:42+0000\n"
1919
"PO-Revision-Date:2017-02-16 23:43+0000\n"
20-
"Last-Translator:Rafael Fontenelle <rffontenelle@gmail.com>, 2025\n"
20+
"Last-Translator:Freesand Leo <yuqinju@163.com>, 2025\n"
2121
"Language-Team:Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
2222
"MIME-Version:1.0\n"
2323
"Content-Type:text/plain; charset=UTF-8\n"
@@ -316,6 +316,12 @@ msgid ""
316316
":exc:`UnicodeDecodeError` if it contained non-ASCII values. This value-"
317317
"specific behavior has caused numerous sad faces over the years."
318318
msgstr""
319+
"Python 3.0 使用 *文本* 和 (二进制) *数据* 等概念来替代 Unicode 字符串和 8 位字符串。 所有文本均使用 "
320+
"Unicode;不过 *已编码* Unicode 是以二进制数据来表示的。 用于存放文本的类型是 :class:`str`,用于存放数据的类型是 "
321+
":class:`bytes`。 与 2.x 场景的最大区别是在 Python 3.0 中任何混用文本和数据的尝试都将引发 "
322+
":exc:`TypeError`,而当你在 Python 2.x 中混用 Unicode 和 8 位字符串时,如果 8 位字符串恰好仅包含 7 位 "
323+
"(ASCII) 字节数据那就没有问题,但是如果包含非 ASCII 值则将引发 :exc:`UnicodeDecodeError`。 "
324+
"这种依赖于特定值的行为多年来造成了无数的苦恼。"
319325

320326
#:../../whatsnew/3.0.rst:250
321327
msgid""
@@ -342,6 +348,10 @@ msgid ""
342348
":class:`bytes` to :class:`str`. You can also use ``bytes(s, encoding=...)``"
343349
" and ``str(b, encoding=...)``, respectively."
344350
msgstr""
351+
"由于 :class:`str` 和 :class:`bytes` 类型无法混用,你必须始终在它们之间执行显式转换。 使用 "
352+
":meth:`str.encode` 将 :class:`str` 转为 :class:`bytes`,并使用 :meth:`bytes.decode`"
353+
" 将 :class:`bytes` 转为 :class:`str`。 你也可以分别使用 ``bytes(s, encoding=...)`` 和 "
354+
"``str(b, encoding=...)``。"
345355

346356
#:../../whatsnew/3.0.rst:268
347357
msgid""

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp