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

Commit9263f0e

Browse files
[po] auto sync
1 parent1101b82 commit9263f0e

File tree

2 files changed

+61
-1
lines changed

2 files changed

+61
-1
lines changed

‎.stat.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"translation":"81.69%","updated_at":"2025-04-28T09:20:10Z"}
1+
{"translation":"81.70%","updated_at":"2025-04-28T14:57:27Z"}

‎whatsnew/3.2.po

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1714,6 +1714,26 @@ msgid ""
17141714
"b'X7899 warehouse Reserve cog '\n"
17151715
"b'L6988 receiving Primary sprocket'"
17161716
msgstr""
1717+
">>> REC_LEN, LOC_START, LOC_LEN = 34, 7, 11\n"
1718+
"\n"
1719+
">>> def change_location(buffer, record_number, location):\n"
1720+
"... start = record_number * REC_LEN + LOC_START\n"
1721+
"... buffer[start: start+LOC_LEN] = location\n"
1722+
"\n"
1723+
">>> import io\n"
1724+
"\n"
1725+
">>> byte_stream = io.BytesIO(\n"
1726+
"... b'G3805 storeroom Main chassis '\n"
1727+
"... b'X7899 shipping Reserve cog '\n"
1728+
"... b'L6988 receiving Primary sprocket'\n"
1729+
"... )\n"
1730+
">>> buffer = byte_stream.getbuffer()\n"
1731+
">>> change_location(buffer, 1, b'warehouse ')\n"
1732+
">>> change_location(buffer, 0, b'showroom ')\n"
1733+
">>> print(byte_stream.getvalue())\n"
1734+
"b'G3805 showroom Main chassis '\n"
1735+
"b'X7899 warehouse Reserve cog '\n"
1736+
"b'L6988 receiving Primary sprocket'"
17171737

17181738
#:../../whatsnew/3.2.rst:1146
17191739
msgid"(Contributed by Antoine Pitrou in :issue:`5506`.)"
@@ -2406,6 +2426,28 @@ msgid ""
24062426
"... description='xz compression'\n"
24072427
"... )"
24082428
msgstr""
2429+
">>> import shutil, pprint\n"
2430+
"\n"
2431+
">>> os.chdir('mydata') # 改至源目录\n"
2432+
">>> f = shutil.make_archive('/var/backup/mydata',\n"
2433+
"... 'zip') # 将当前目录归档\n"
2434+
">>> f # 显示归档文件名\n"
2435+
"'/var/backup/mydata.zip'\n"
2436+
">>> os.chdir('tmp') # 改至解包目录\n"
2437+
">>> shutil.unpack_archive('/var/backup/mydata.zip') # 恢复数据\n"
2438+
"\n"
2439+
">>> pprint.pprint(shutil.get_archive_formats()) # 显示已知格式\n"
2440+
"[('bztar',\"bzip2'ed tar-file\"),\n"
2441+
" ('gztar',\"gzip'ed tar-file\"),\n"
2442+
" ('tar', 'uncompressed tar file'),\n"
2443+
" ('zip', 'ZIP file')]\n"
2444+
"\n"
2445+
">>> shutil.register_archive_format( # 注册新的归档格式\n"
2446+
"... name='xz',\n"
2447+
"... function=xz.compress, # 可调用的归档函数\n"
2448+
"... extra_args=[('level', 8)], # 函数的参数\n"
2449+
"... description='xz compression'\n"
2450+
"... )"
24092451

24102452
#:../../whatsnew/3.2.rst:1595
24112453
msgid"sqlite3"
@@ -3914,6 +3956,8 @@ msgid ""
39143956
"``'mbcs'``) and the ``'surrogateescape'`` error handler on all operating "
39153957
"systems."
39163958
msgstr""
3959+
"默认情况下,:mod:`tarfile` 在 Windows 上使用 ``'utf-8'`` 编码格式 (而不是 ``'mbcs'``) "
3960+
"并在所有操作系统上使用 ``'surrogateescape'`` 错误处理器。"
39173961

39183962
#:../../whatsnew/3.2.rst:2461
39193963
msgid"Documentation"
@@ -4030,6 +4074,9 @@ msgid ""
40304074
"<https://www.mercurial-scm.org/wiki/QuickStart>`_ or the `Guide to Mercurial"
40314075
" Workflows <https://www.mercurial-scm.org/guide>`_."
40324076
msgstr""
4077+
"要学习使用新的版本控制系统,请参阅 `Quick Start <https://www.mercurial-"
4078+
"scm.org/wiki/QuickStart>`_ 或 `Guide to Mercurial Workflows "
4079+
"<https://www.mercurial-scm.org/guide>`_。"
40334080

40344081
#:../../whatsnew/3.2.rst:2528
40354082
msgid"Build and C API Changes"
@@ -4044,6 +4091,8 @@ msgid ""
40444091
"The *idle*, *pydoc* and *2to3* scripts are now installed with a version-"
40454092
"specific suffix on ``make altinstall`` (:issue:`10679`)."
40464093
msgstr""
4094+
"现在 *idle*, *pydoc* 和 *2to3* 脚本的安装将在 ``make altinstall`` 中附带特定版本的后缀 "
4095+
"(:issue:`10679`)。"
40474096

40484097
#:../../whatsnew/3.2.rst:2535
40494098
msgid""
@@ -4384,6 +4433,8 @@ msgid ""
43844433
":mod:`http.client`. Such support is still present on the server side (in "
43854434
":mod:`http.server`)."
43864435
msgstr""
4436+
"对旧式 HTTP 0.9 的支持已从 :mod:`urllib.request` 和 :mod:`http.client` 中移除。 "
4437+
"此项支持仍然存在于服务器端(在 :mod:`http.server` 中)。"
43874438

43884439
#:../../whatsnew/3.2.rst:2729
43894440
msgid"(Contributed by Antoine Pitrou, :issue:`10711`.)"
@@ -4394,6 +4445,8 @@ msgid ""
43944445
"SSL sockets in timeout mode now raise :exc:`socket.timeout` when a timeout "
43954446
"occurs, rather than a generic :exc:`~ssl.SSLError`."
43964447
msgstr""
4448+
"超时模式下的 SSL 套接字现在如发生超时则会引发 :exc:`socket.timeout`,而不是一般性的 "
4449+
":exc:`~ssl.SSLError`。"
43974450

43984451
#:../../whatsnew/3.2.rst:2734
43994452
msgid"(Contributed by Antoine Pitrou, :issue:`10272`.)"
@@ -4406,13 +4459,18 @@ msgid ""
44064459
"state aware APIs (such as :c:func:`PyEval_SaveThread` and "
44074460
":c:func:`PyEval_RestoreThread`) should be used instead."
44084461
msgstr""
4462+
"有误导性的 :c:func:`!PyEval_AcquireLock` 和 :c:func:`!PyEval_ReleaseLock` 已正式被弃用。 "
4463+
"应当改用可感知线程状态的 API (如 :c:func:`PyEval_SaveThread` 和 "
4464+
":c:func:`PyEval_RestoreThread`)。"
44094465

44104466
#:../../whatsnew/3.2.rst:2741
44114467
msgid""
44124468
"Due to security risks, :func:`!asyncore.handle_accept` has been deprecated, "
44134469
"and a new function, :func:`!asyncore.handle_accepted`, was added to replace "
44144470
"it."
44154471
msgstr""
4472+
"由于存在安全风险,:func:`!asyncore.handle_accept` 已被弃用,新增了一个函数 "
4473+
":func:`!asyncore.handle_accepted` 用来替代它。"
44164474

44174475
#:../../whatsnew/3.2.rst:2744
44184476
msgid"(Contributed by Giampaolo Rodola in :issue:`6706`.)"
@@ -4423,3 +4481,5 @@ msgid ""
44234481
"Due to the new :term:`GIL` implementation, :c:func:`!PyEval_InitThreads` "
44244482
"cannot be called before :c:func:`Py_Initialize` anymore."
44254483
msgstr""
4484+
"由于新的 :term:`GIL` 实现的限制,:c:func:`!PyEval_InitThreads` 不再可以在 "
4485+
":c:func:`Py_Initialize` 之前被调用。"

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp