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

Commitfbaa2d8

Browse files
[po] auto sync
1 parentd6664c8 commitfbaa2d8

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

‎.stat.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"translation":"83.06%","updated_at":"2025-04-23T15:18:42Z"}
1+
{"translation":"83.06%","updated_at":"2025-04-24T09:19:35Z"}

‎whatsnew/3.0.po

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -440,6 +440,12 @@ msgid ""
440440
"of strings, filenames that cannot be decoded properly are omitted rather "
441441
"than raising :exc:`UnicodeError`."
442442
msgstr""
443+
"文件名是以(Unicode)字符串的形式传给 API 并返回的。 这可能产生特定平台专属的问题因为在某些平台上文件名强制使用字节串。 (另一方面,在 "
444+
"Windows 上文件名则原生存储为 Unicode。) 为绕过此问题,多数接受文件名的 API(例如 :func:`open` 和 :mod:`os`"
445+
" 模块中的许多函数)都同时接受 :class:`bytes` 对象和字符串,而少数 API 会发出要求 :class:`bytes` 返回值的提示。 "
446+
"因而,当参数为 :class:`bytes` 的实例时 :func:`os.listdir` 会返回由 :class:`bytes` "
447+
"实例组成的列表,:func:`os.getcwdb` 则会将当前工作目录作为 :class:`bytes` 实例返回。 请注意当 "
448+
":func:`os.listdir` 返回字符串的列表时,无法被正确解码的文件名会被忽略而不是引发 :exc:`UnicodeError`。"
443449

444450
#:../../whatsnew/3.0.rst:325
445451
msgid""
@@ -532,6 +538,8 @@ msgid ""
532538
"now assign directly to a variable in an outer (but non-global) scope. "
533539
":keyword:`!nonlocal` is a new reserved word."
534540
msgstr""
541+
":pep:`3104`: :keyword:`nonlocal` 语句。 现在你可以使用 ``nonlocal x`` "
542+
"直接赋值到一个外层(但非全局)作用域。 :keyword:`!nonlocal` 是新的保留字。"
535543

536544
#:../../whatsnew/3.0.rst:378
537545
msgid""
@@ -540,6 +548,8 @@ msgid ""
540548
"``rest`` object is always a (possibly empty) list; the right-hand side may "
541549
"be any iterable. Example::"
542550
msgstr""
551+
":pep:`3132`: 扩展可迭代对象解包。 你现在可以编写像 ``a, b, *rest = some_sequence`` 这样的代码。 甚至 "
552+
"``*rest, a = stuff``。 ``rest`` 对象将总是为一个(可能为空的)列表;右侧的对象可以是任意可迭代对象。 例如::"
543553

544554
#:../../whatsnew/3.0.rst:385
545555
msgid"This sets *a* to ``0``, *b* to ``4``, and *rest* to ``[1, 2, 3]``."

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp