8000 [po] auto sync · python/python-docs-zh-cn@899c220 · GitHub
[go: up one dir, main page]

Skip to content

Commit 899c220

Browse files
[po] auto sync
1 parent 435ff8c commit 899c220

19 files changed

+527
-340
lines changed

.stat.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"translation": "80.97%", "updated_at": "2025-02-22T14:55:20Z"}
1+
{"translation": "81.01%", "updated_at": "2025-02-23T07:55:58Z"}

c-api/dict.po

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
# Josh Ouyang <me@joshoy.org>, 2021
1010
# jaystone776 <1732865113@qq.com>, 2021
1111
# 安龙, 2023
12-
# Freesand Leo <yuqinju@163.com>, 2024
12+
# Freesand Leo <yuqinju@163.com>, 2025
1313
#
1414
#, fuzzy
1515
msgid ""
@@ -18,7 +18,7 @@ msgstr ""
1818
"Report-Msgid-Bugs-To: \n"
1919
"POT-Creation-Date: 2025-02-21 14:16+0000\n"
2020
"PO-Revision-Date: 2021-06-28 00:48+0000\n"
21-
"Last-Translator: Freesand Leo <yuqinju@163.com>, 2024\n"
21+
"Last-Translator: Freesand Leo <yuqinju@163.com>, 2025\n"
2222
"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
2323
"MIME-Version: 1.0\n"
2424
"Content-Type: text/plain; charset=UTF-8\n"
@@ -215,6 +215,8 @@ msgid ""
215215
":c:expr:`const char*` UTF-8 encoded bytes string, rather than a "
216216
":c:expr:`PyObject*`."
217217
msgstr ""
218+
"类似于 :c:func:`PyDict_GetItemRef`,但 *key* 被指定为一个 :c:expr:`const char*` UTF-8 "
219+
"编码的字节串,而不是 :c:expr:`PyObject*`。"
218220

219221
#: ../../c-api/dict.rst:168
220222
msgid ""
@@ -279,7 +281,7 @@ msgstr "如果不存在该键,则在 *result* 不为 ``NULL`` 时将 *\\*resul
279281
msgid ""
280282
"Similar to :meth:`dict.pop`, but without the default value and not raising "
281283
":exc:`KeyError` if the key missing."
282-
msgstr ""
284+
msgstr "类似于 :meth:`dict.pop`,但没有默认值并且当键不存在时不会引发 :exc:`KeyError`。"
283285

284286
#: ../../c-api/dict.rst:217
285287
msgid ""

c-api/slice.po

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
# SOME DESCRIPTIVE TITLE.
2-
# Copyright (C) 2001-2024, Python Software Foundation
2+
# Copyright (C) 2001-2025, Python Software Foundation
33
# This file is distributed under the same license as the Python package.
44
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
55
#
66
# Translators:
77
# Kunkgg <goukun07@gmail.com>, 2021
8-
# Freesand Leo <yuqinju@163.com>, 2024
8+
# Freesand Leo <yuqinju@163.com>, 2025
99
#
1010
#, fuzzy
1111
msgid ""
1212
msgstr ""
1313
"Project-Id-Version: Python 3.13\n"
1414
"Report-Msgid-Bugs-To: \n"
15-
"POT-Creation-Date: 2024-10-11 14:17+0000\n"
15+
"POT-Creation-Date: 2025-02-21 14:16+0000\n"
1616
"PO-Revision-Date: 2021-06-28 00:50+0000\n"
17-
"Last-Translator: Freesand Leo <yuqinju@163.com>, 2024\n"
17+
"Last-Translator: Freesand Leo <yuqinju@163.com>, 2025\n"
1818
"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
1919
"MIME-Version: 1.0\n"
2020
"Content-Type: text/plain; charset=UTF-8\n"
@@ -189,12 +189,20 @@ msgstr "Ellipsis 对象"
189189

190190
#: ../../c-api/slice.rst:123
191191
msgid ""
192+
"The type of Python :const:`Ellipsis` object. Same "
193+
"as :class:`types.EllipsisType` in the Python layer."
194+
msgstr ""
195+
"Python :const:`Ellipsis` 对象的类型。 与 Python 层的 :class:`types.EllipsisType` "
196+
"为同一对象。"
197+
198+
#: ../../c-api/slice.rst:129
199+
msgid ""
192200
"The Python ``Ellipsis`` object. This object has no methods. Like "
193201
":c:data:`Py_None`, it is an :term:`immortal` singleton object."
194202
msgstr ""
195203
"Python ``Ellipsis`` 对象。 此对象没有任何方法。 像 :c:data:`Py_None` 一样,它是一个 "
196204
":term:`immortal` 单例对象。"
197205

198-
#: ../../c-api/slice.rst:126
206+
#: ../../c-api/slice.rst:132
199207
msgid ":c:data:`Py_Ellipsis` is immortal."
200208
msgstr ":c:data:`Py_Ellipsis` 是永久性对象。"

faq/general.po

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# Translators:
77
# Konge <zkonge@outlook.com>, 2021
88
# ppcfish <ppcfish@gmail.com>, 2021
9-
# Freesand Leo <yuqinju@163.com>, 2024
9+
# Freesand Leo <yuqinju@163.com>, 2025
1010
#
1111
#, fuzzy
1212
msgid ""
@@ -15,7 +15,7 @@ msgstr ""
1515
"Report-Msgid-Bugs-To: \n"
1616
"POT-Creation-Date: 2025-02-21 14:16+0000\n"
1717
"PO-Revision-Date: 2021-06-28 00:52+0000\n"
18-
"Last-Translator: Freesand Leo <yuqinju@163.com>, 2024\n"
18+
"Last-Translator: Freesand Leo <yuqinju@163.com>, 2025\n"
1919
"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
2020
"MIME-Version: 1.0\n"
2121
"Content-Type: text/plain; charset=UTF-8\n"
@@ -783,6 +783,29 @@ msgid ""
783783
">>> L\n"
784784
"[1]"
785785
msgstr ""
786+
">>> L = []\n"
787+
">>> dir(L)\n"
788+
"['__add__', '__class__', '__contains__', '__delattr__', '__delitem__',\n"
789+
"'__dir__', '__doc__', '__eq__', '__format__', '__ge__',\n"
790+
"'__getattribute__', '__getitem__', '__gt__', '__hash__', '__iadd__',\n"
791+
"'__imul__', '__init__', '__iter__', '__le__', '__len__', '__lt__',\n"
792+
"'__mul__', '__ne__', '__new__', '__reduce__', '__reduce_ex__',\n"
793+
"'__repr__', '__reversed__', '__rmul__', '__setattr__', '__setitem__',\n"
794+
"'__sizeof__', '__str__', '__subclasshook__', 'append', 'clear',\n"
795+
"'copy', 'count', 'extend', 'index', 'insert', 'pop', 'remove',\n"
796+
"'reverse', 'sort']\n"
797+
">>> [d for d in dir(L) if '__' not in d]\n"
798+
"['append', 'clear', 'copy', 'count', 'extend', 'index', 'insert', 'pop', 'remove', 'reverse', 'sort']\n"
799+
"\n"
800+
">>> help(L.append)\n"
801+
"Help on built-in function append:\n"
802+
"\n"
803+
"append(...)\n"
804+
" L.append(object) -> None -- append object to end\n"
805+
"\n"
806+
">>> L.append(1)\n"
807+
">>> L\n"
808+
"[1]"
786809

787810
#: ../../faq/general.rst:436
788811
msgid ""

faq/programming.po

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3983,6 +3983,8 @@ msgid ""
39833983
">>> import py_compile\n"
39843984
">>> py_compile.compile('foo.py')"
39853985
msgstr ""
3986+
">>> import py_compile\n"
3987+
">>> py_compile.compile('foo.py')"
39863988

39873989
#: ../../faq/programming.rst:2115
39883990
msgid ""

howto/functional.po

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
# Alpha Du <alphanow@gmail.com>, 2022
1717
# ProgramRipper, 2023
1818
# lian Wu (Wulian) <xiguawulian@gmail.com>, 2024
19-
# Freesand Leo <yuqinju@163.com>, 2024
19+
# Freesand Leo <yuqinju@163.com>, 2025
2020
#
2121
#, fuzzy
2222
msgid ""
@@ -25,7 +25,7 @@ msgstr ""
2525
"Report-Msgid-Bugs-To: \n"
2626
"POT-Creation-Date: 2025-02-21 14:16+0000\n"
2727
"PO-Revision-Date: 2021-06-28 00:53+0000\n"
28-
"Last-Translator: Freesand Leo <yuqinju@163.com>, 2024\n"
28+
"Last-Translator: Freesand Leo <yuqinju@163.com>, 2025\n"
2929
"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
3030
"MIME-Version: 1.0\n"
3131
"Content-Type: text/plain; charset=UTF-8\n"
@@ -1183,6 +1183,15 @@ msgid ""
11831183
">>> sorted(rand_list, reverse=True)\n"
11841184
"[9878, 9828, 8442, 7953, 6431, 6213, 2207, 769]"
11851185
msgstr ""
1186+
">>> import random\n"
1187+
">>> # 生成在 [0, 10000) 区间内的 8 个随机数\n"
1188+
">>> rand_list = random.sample(range(10000), 8)\n"
1189+
">>> rand_list\n"
1190+
"[769, 7953, 9828, 6431, 8442, 9878, 6213, 2207]\n"
1191+
">>> sorted(rand_list)\n"
1192+
"[769, 2207, 6213, 6431, 7953, 8442, 9828, 9878]\n"
1193+
">>> sorted(rand_list, reverse=True)\n"
1194+
"[9878, 9828, 8442, 7953, 6431, 6213, 2207, 769]"
11861195

11871196
#: ../../howto/functional.rst:698
11881197
msgid ""

howto/ipaddress.po

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
# telnetning <telnetning@gmail.com>, 2021
88
# Alpha Du <alphanow@gmail.com>, 2021
99
# ProgramRipper, 2023
10-
# Freesand Leo <yuqinju@163.com>, 2024
10+
# Freesand Leo <yuqinju@163.com>, 2025
1111
#
1212
#, fuzzy
1313
msgid ""
@@ -16,7 +16,7 @@ msgstr ""
1616
"Report-Msgid-Bugs-To: \n"
1717
"POT-Creation-Date: 2025-02-21 14:16+0000\n"
1818
"PO-Revision-Date: 2021-06-28 00:53+0000\n"
19-
"Last-Translator: Freesand Leo <yuqinju@163.com>, 2024\n"
19+
"Last-Translator: Freesand Leo <yuqinju@163.com>, 2025\n"
2020
"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
2121
"MIME-Version: 1.0\n"
2222
"Content-Type: text/plain; charset=UTF-8\n"
@@ -371,6 +371,17 @@ msgid ""
371371
"192.0.2.253\n"
372372
"192.0.2.254"
373373
msgstr ""
374+
">>> net4 = ipaddress.ip_network('192.0.2.0/24')\n"
375+
">>> for x in net4.hosts():\n"
376+
"... print(x)\n"
377+
"192.0.2.1\n"
378+
"192.0.2.2\n"
379+
"192.0.2.3\n"
380+
"192.0.2.4\n"
381+
"...\n"
382+
"192.0.2.252\n"
383+
"192.0.2.253\n"
384+
"192.0.2.254"
374385

375386
#: ../../howto/ipaddress.rst:205
376387
msgid ""

0 commit comments

Comments
 (0)
0