Skip to content

Commit c2fdc95

Browse files
[po] auto sync
1 parent 3f5a6a3 commit c2fdc95

7 files changed

Lines changed: 188 additions & 45 deletions

File tree

.stat.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"translation": "93.59%", "updated_at": "2024-10-04T15:57:06Z"}
1+
{"translation": "93.60%", "updated_at": "2024-10-05T07:57:37Z"}

c-api/long.po

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,8 @@ msgid ""
246246
"``PyLong_AsLong``. In particular, it can fail with :exc:`OverflowError` or "
247247
"another exception."
248248
msgstr ""
249+
"一个已经 :term:`soft deprecated` 的别名。 完全等价于推荐使用的 ``PyLong_AsLong``。 特别地,它可能因 "
250+
":exc:`OverflowError` 或其他异常而失败。"
249251

250252
#: ../../c-api/long.rst:171
251253
msgid "The function is soft deprecated."

howto/index.po

Lines changed: 30 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ msgid ""
1212
msgstr ""
1313
"Project-Id-Version: Python 3.13\n"
1414
"Report-Msgid-Bugs-To: \n"
15-
"POT-Creation-Date: 2024-06-28 14:15+0000\n"
15+
"POT-Creation-Date: 2024-10-04 14:17+0000\n"
1616
"PO-Revision-Date: 2021-06-28 00:53+0000\n"
1717
"Last-Translator: Freesand Leo <yuqinju@163.com>, 2024\n"
1818
"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
@@ -36,102 +36,106 @@ msgstr ""
3636
"Python HOWTO 是覆盖特定主题深度文档。 这份合集以Modeled on the Linux 文档项目的 HOWTO 合为样板,它致力于提供比"
3737
" Python 库参考更详细的文档。"
3838

39-
#: ../../howto/index.rst:37
39+
#: ../../howto/index.rst:38
4040
msgid "General:"
4141
msgstr "通用:"
4242

43-
#: ../../howto/index.rst:39
43+
#: ../../howto/index.rst:40
4444
msgid ":ref:`annotations-howto`"
4545
msgstr ":ref:`annotations-howto`"
4646

47-
#: ../../howto/index.rst:40
47+
#: ../../howto/index.rst:41
4848
msgid ":ref:`argparse-tutorial`"
4949
msgstr ":ref:`argparse-tutorial`"
5050

51-
#: ../../howto/index.rst:41
51+
#: ../../howto/index.rst:42
5252
msgid ":ref:`descriptorhowto`"
5353
msgstr ":ref:`descriptorhowto`"
5454

55-
#: ../../howto/index.rst:42
55+
#: ../../howto/index.rst:43
5656
msgid ":ref:`enum-howto`"
5757
msgstr ":ref:`enum-howto`"
5858

59-
#: ../../howto/index.rst:43
59+
#: ../../howto/index.rst:44
6060
msgid ":ref:`functional-howto`"
6161
msgstr ":ref:`functional-howto`"
6262

63-
#: ../../howto/index.rst:44
63+
#: ../../howto/index.rst:45
6464
msgid ":ref:`ipaddress-howto`"
6565
msgstr ":ref:`ipaddress-howto`"
6666

67-
#: ../../howto/index.rst:45
67+
#: ../../howto/index.rst:46
6868
msgid ":ref:`logging-howto`"
6969
msgstr ":ref:`logging-howto`"
7070

71-
#: ../../howto/index.rst:46
71+
#: ../../howto/index.rst:47
7272
msgid ":ref:`logging-cookbook`"
7373
msgstr ":ref:`logging-cookbook`"
7474

75-
#: ../../howto/index.rst:47
75+
#: ../../howto/index.rst:48
7676
msgid ":ref:`regex-howto`"
7777
msgstr ":ref:`regex-howto`"
7878

79-
#: ../../howto/index.rst:48
79+
#: ../../howto/index.rst:49
8080
msgid ":ref:`sortinghowto`"
8181
msgstr ":ref:`sortinghowto`"
8282

83-
#: ../../howto/index.rst:49
83+
#: ../../howto/index.rst:50
8484
msgid ":ref:`unicode-howto`"
8585
msgstr ":ref:`unicode-howto`"
8686

87-
#: ../../howto/index.rst:50
87+
#: ../../howto/index.rst:51
8888
msgid ":ref:`urllib-howto`"
8989
msgstr ":ref:`urllib-howto`"
9090

91-
#: ../../howto/index.rst:52
91+
#: ../../howto/index.rst:53
9292
msgid "Advanced development:"
9393
msgstr "高级开发:"
9494

95-
#: ../../howto/index.rst:54
95+
#: ../../howto/index.rst:55
9696
msgid ":ref:`curses-howto`"
9797
msgstr ":ref:`curses-howto`"
9898

99-
#: ../../howto/index.rst:55
99+
#: ../../howto/index.rst:56
100+
msgid ":ref:`freethreading-python-howto`"
101+
msgstr ":ref:`freethreading-python-howto`"
102+
103+
#: ../../howto/index.rst:57
100104
msgid ":ref:`freethreading-extensions-howto`"
101105
msgstr ":ref:`freethreading-extensions-howto`"
102106

103-
#: ../../howto/index.rst:56
107+
#: ../../howto/index.rst:58
104108
msgid ":ref:`isolating-extensions-howto`"
105109
msgstr ":ref:`isolating-extensions-howto`"
106110

107-
#: ../../howto/index.rst:57
111+
#: ../../howto/index.rst:59
108112
msgid ":ref:`python_2.3_mro`"
109113
msgstr ":ref:`python_2.3_mro`"
110114

111-
#: ../../howto/index.rst:58
115+
#: ../../howto/index.rst:60
112116
msgid ":ref:`socket-howto`"
113117
msgstr ":ref:`socket-howto`"
114118

115-
#: ../../howto/index.rst:59
119+
#: ../../howto/index.rst:61
116120
msgid ":ref:`timerfd-howto`"
117121
msgstr ":ref:`timerfd-howto`"
118122

119-
#: ../../howto/index.rst:60
123+
#: ../../howto/index.rst:62
120124
msgid ":ref:`cporting-howto`"
121125
msgstr ":ref:`cporting-howto`"
122126

123-
#: ../../howto/index.rst:62
127+
#: ../../howto/index.rst:64
124128
msgid "Debugging and profiling:"
125129
msgstr "调试和性能分析:"
126130

127-
#: ../../howto/index.rst:64
131+
#: ../../howto/index.rst:66
128132
msgid ":ref:`gdb`"
129133
msgstr ":ref:`gdb`"
130134

131-
#: ../../howto/index.rst:65
135+
#: ../../howto/index.rst:67
132136
msgid ":ref:`instrumentation`"
133137
msgstr ":ref:`instrumentation`"
134138

135-
#: ../../howto/index.rst:66
139+
#: ../../howto/index.rst:68
136140
msgid ":ref:`perf_profiling`"
137141
msgstr ":ref:`perf_profiling`"

library/bisect.po

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ msgid ""
1515
msgstr ""
1616
"Project-Id-Version: Python 3.13\n"
1717
"Report-Msgid-Bugs-To: \n"
18-
"POT-Creation-Date: 2024-09-13 14:16+0000\n"
18+
"POT-Creation-Date: 2024-10-04 14:17+0000\n"
1919
"PO-Revision-Date: 2021-06-28 00:56+0000\n"
2020
"Last-Translator: Freesand Leo <yuqinju@163.com>, 2024\n"
2121
"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
@@ -268,6 +268,40 @@ msgid ""
268268
" return a[i]\n"
269269
" raise ValueError"
270270
msgstr ""
271+
"def index(a, x):\n"
272+
" '定位恰好等于 x 的最靠左的值'\n"
273+
" i = bisect_left(a, x)\n"
274+
" if i != len(a) and a[i] == x:\n"
275+
" return i\n"
276+
" raise ValueError\n"
277+
"\n"
278+
"def find_lt(a, x):\n"
279+
" '找到小于 x 的最靠右的值'\n"
280+
" i = bisect_left(a, x)\n"
281+
" if i:\n"
282+
" return a[i-1]\n"
283+
" raise ValueError\n"
284+
"\n"
285+
"def find_le(a, x):\n"
286+
" '找到小于等于 x 的最靠右的值'\n"
287+
" i = bisect_right(a, x)\n"
288+
" if i:\n"
289+
" return a[i-1]\n"
290+
" raise ValueError\n"
291+
"\n"
292+
"def find_gt(a, x):\n"
293+
" '找到大于 x 的最靠左的值'\n"
294+
" i = bisect_right(a, x)\n"
295+
" if i != len(a):\n"
296+
" return a[i]\n"
297+
" raise ValueError\n"
298+
"\n"
299+
"def find_ge(a, x):\n"
300+
" '找到大于等于 x 的最靠左的项'\n"
301+
" i = bisect_left(a, x)\n"
302+
" if i != len(a):\n"
303+
" return a[i]\n"
304+
" raise ValueError"
271305

272306
#: ../../library/bisect.rst:187
273307
msgid "Examples"

library/cmd.po

Lines changed: 74 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ msgid ""
1414
msgstr ""
1515
"Project-Id-Version: Python 3.13\n"
1616
"Report-Msgid-Bugs-To: \n"
17-
"POT-Creation-Date: 2024-09-13 14:16+0000\n"
17+
"POT-Creation-Date: 2024-10-04 14:17+0000\n"
1818
"PO-Revision-Date: 2021-06-28 00:56+0000\n"
1919
"Last-Translator: Freesand Leo <yuqinju@163.com>, 2024\n"
2020
"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
@@ -456,6 +456,79 @@ msgid ""
456456
"if __name__ == '__main__':\n"
457457
" TurtleShell().cmdloop()"
458458
msgstr ""
459+
"import cmd, sys\n"
460+
"from turtle import *\n"
461+
"\n"
462+
"class TurtleShell(cmd.Cmd):\n"
463+
" intro = 'Welcome to the turtle shell. Type help or ? to list commands.\\n'\n"
464+
" prompt = '(turtle) '\n"
465+
" file = None\n"
466+
"\n"
467+
" # ----- 基本 turtle 命令 -----\n"
468+
" def do_forward(self, arg):\n"
469+
" 'Move the turtle forward by the specified distance: FORWARD 10'\n"
470+
" forward(*parse(arg))\n"
471+
" def do_right(self, arg):\n"
472+
" 'Turn turtle right by given number of degrees: RIGHT 20'\n"
473+
" right(*parse(arg))\n"
474+
" def do_left(self, arg):\n"
475+
" 'Turn turtle left by given number of degrees: LEFT 90'\n"
476+
" left(*parse(arg))\n"
477+
" def do_goto(self, arg):\n"
478+
" 'Move turtle to an absolute position with changing orientation. GOTO 100 200'\n"
479+
" goto(*parse(arg))\n"
480+
" def do_home(self, arg):\n"
481+
" 'Return turtle to the home position: HOME'\n"
482+
" home()\n"
483+
" def do_circle(self, arg):\n"
484+
" 'Draw circle with given radius an options extent and steps: CIRCLE 50'\n"
485+
" circle(*parse(arg))\n"
486+
" def do_position(self, arg):\n"
487+
" 'Print the current turtle position: POSITION'\n"
488+
" print('Current position is %d %d\\n' % position())\n"
489+
" def do_heading(self, arg):\n"
490+
" 'Print the current turtle heading in degrees: HEADING'\n"
491+
" print('Current heading is %d\\n' % (heading(),))\n"
492+
" def do_color(self, arg):\n"
493+
" 'Set the color: COLOR BLUE'\n"
494+
" color(arg.lower())\n"
495+
" def do_undo(self, arg):\n"
496+
" 'Undo (repeatedly) the last turtle action(s): UNDO'\n"
497+
" def do_reset(self, arg):\n"
498+
" 'Clear the screen and return turtle to center: RESET'\n"
499+
" reset()\n"
500+
" def do_bye(self, arg):\n"
501+
" 'Stop recording, close the turtle window, and exit: BYE'\n"
502+
" print('Thank you for using Turtle')\n"
503+
" self.close()\n"
504+
" bye()\n"
505+
" return True\n"
506+
"\n"
507+
" # ----- 记录和回放 -----\n"
508+
" def do_record(self, arg):\n"
509+
" 'Save future commands to filename: RECORD rose.cmd'\n"
510+
" self.file = open(arg, 'w')\n"
511+
" def do_playback(self, arg):\n"
512+
" 'Playback commands from a file: PLAYBACK rose.cmd'\n"
513+
" self.close()\n"
514+
" with open(arg) as f:\n"
515+
" self.cmdqueue.extend(f.read().splitlines())\n"
516+
" def precmd(self, line):\n"
517+
" line = line.lower()\n"
518+
" if self.file and 'playback' not in line:\n"
519+
" print(line, file=self.file)\n"
520+
" return line\n"
521+
" def close(self):\n"
522+
" if self.file:\n"
523+
" self.file.close()\n"
524+
" self.file = None\n"
525+
"\n"
526+
"def parse(arg):\n"
527+
" 'Convert a series of zero or more numbers to an argument tuple'\n"
528+
" return tuple(map(int, arg.split()))\n"
529+
"\n"
530+
"if __name__ == '__main__':\n"
531+
" TurtleShell().cmdloop()"
459532

460533
#: ../../library/cmd.rst:340
461534
msgid ""

library/cmdline.po

Lines changed: 19 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ msgid ""
1111
msgstr ""
1212
"Project-Id-Version: Python 3.13\n"
1313
"Report-Msgid-Bugs-To: \n"
14-
"POT-Creation-Date: 2024-06-14 17:56+0000\n"
14+
"POT-Creation-Date: 2024-10-04 14:17+0000\n"
1515
"PO-Revision-Date: 2023-10-13 14:16+0000\n"
1616
"Last-Translator: Freesand Leo <yuqinju@163.com>, 2024\n"
1717
"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
@@ -174,61 +174,65 @@ msgid ":ref:`sqlite3 <sqlite3-cli>`"
174174
msgstr ":ref:`sqlite3 <sqlite3-cli>`"
175175

176176
#: ../../library/cmdline.rst:43
177+
msgid ":ref:`symtable <symtable-cli>`"
178+
msgstr ":ref:`符号表 <symtable-cli>`"
179+
180+
#: ../../library/cmdline.rst:44
177181
msgid ":ref:`sysconfig <sysconfig-cli>`"
178182
msgstr ":ref:`sysconfig <sysconfig-cli>`"
179183

180-
#: ../../library/cmdline.rst:44
184+
#: ../../library/cmdline.rst:45
181185
msgid ":mod:`tabnanny`"
182186
msgstr ":mod:`tabnanny`"
183187

184-
#: ../../library/cmdline.rst:45
188+
#: ../../library/cmdline.rst:46
185189
msgid ":ref:`tarfile <tarfile-commandline>`"
186190
msgstr ":ref:`tarfile <tarfile-commandline>`"
187191

188-
#: ../../library/cmdline.rst:46
192+
#: ../../library/cmdline.rst:47
189193
msgid ":mod:`!this`"
190194
msgstr ":mod:`!this`"
191195

192-
#: ../../library/cmdline.rst:47
196+
#: ../../library/cmdline.rst:48
193197
msgid ":ref:`timeit <timeit-command-line-interface>`"
194198
msgstr ":ref:`timeit <timeit-command-line-interface>`"
195199

196-
#: ../../library/cmdline.rst:48
200+
#: ../../library/cmdline.rst:49
197201
msgid ":ref:`tokenize <tokenize-cli>`"
198202
msgstr ":ref:`tokenize <tokenize-cli>`"
199203

200-
#: ../../library/cmdline.rst:49
204+
#: ../../library/cmdline.rst:50
201205
msgid ":ref:`trace <trace-cli>`"
202206
msgstr ":ref:`trace <trace-cli>`"
203207

204-
#: ../../library/cmdline.rst:50
208+
#: ../../library/cmdline.rst:51
205209
msgid ":mod:`turtledemo`"
206210
msgstr ":mod:`turtledemo`"
207211

208-
#: ../../library/cmdline.rst:51
212+
#: ../../library/cmdline.rst:52
209213
msgid ":ref:`unittest <unittest-command-line-interface>`"
210214
msgstr ":ref:`unittest <unittest-command-line-interface>`"
211215

212-
#: ../../library/cmdline.rst:52
216+
#: ../../library/cmdline.rst:53
213217
msgid ":ref:`uuid <uuid-cli>`"
214218
msgstr ":ref:`uuid <uuid-cli>`"
215219

216-
#: ../../library/cmdline.rst:53
220+
#: ../../library/cmdline.rst:54
217221
msgid ":mod:`venv`"
218222
msgstr ":mod:`venv`"
219223

220-
#: ../../library/cmdline.rst:54
224+
#: ../../library/cmdline.rst:55
221225
msgid ":mod:`webbrowser`"
222226
msgstr ":mod:`webbrowser`"
223227

224-
#: ../../library/cmdline.rst:55
228+
#: ../../library/cmdline.rst:56
225229
msgid ":ref:`zipapp <zipapp-command-line-interface>`"
226230
msgstr ":ref:`zipapp <zipapp-command-line-interface>`"
227231

228-
#: ../../library/cmdline.rst:56
232+
#: ../../library/cmdline.rst:57
229233
msgid ":ref:`zipfile <zipfile-commandline>`"
230234
msgstr ":ref:`zipfile <zipfile-commandline>`"
231235

232-
#: ../../library/cmdline.rst:58
236+
#: ../../library/cmdline.rst:59
233237
msgid "See also the :ref:`Python command-line interface <using-on-general>`."
234238
msgstr "另请参阅 the :ref:`Python 命令行界面 <using-on-general>`。"

0 commit comments

Comments
 (0)