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

Commit9fa7ace

Browse files
mattwang44ken71301
authored andcommitted
translatelibrary/codeop.po
1 parentb1e2866 commit9fa7ace

File tree

1 file changed

+36
-6
lines changed

1 file changed

+36
-6
lines changed

‎library/codeop.po

Lines changed: 36 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
1-
# SOME DESCRIPTIVE TITLE.
2-
# Copyright (C) 2001-2022, Python Software Foundation
1+
# Copyright (C) 2001-2024, Python Software Foundation
32
# This file is distributed under the same license as the Python package.
43
#
54
# Translators:
5+
# Liang-Bo Wang <me@liang2.tw>, 2016
6+
# Matt Wang <mattwang44@gmail.com>, 2024
67
msgid ""
78
msgstr ""
89
"Project-Id-Version:Python 3.13\n"
910
"Report-Msgid-Bugs-To:\n"
1011
"POT-Creation-Date:2024-05-09 00:03+0000\n"
11-
"PO-Revision-Date:2016-11-19 00:28+0000\n"
12-
"Last-Translator:Liang-Bo Wang <me@liang2.tw>\n"
12+
"PO-Revision-Date:2024-09-24 20:28+0000\n"
13+
"Last-Translator:Matt Wang <mattwang44@gmail.com>\n"
1314
"Language-Team:Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
1415
"tw)\n"
1516
"Language:zh_TW\n"
@@ -34,32 +35,41 @@ msgid ""
3435
"include such a loop in your program you probably want to use the :mod:`code` "
3536
"module instead."
3637
msgstr""
38+
":mod:`codeop` 模組提供了可以模擬 Python read-eval-print 循環的工具程式 "
39+
"(utilities),就像在 :mod:`code` 模組中所做的那樣。因此你可能不想直接使用該模"
40+
"組;如果你想在程式中包含這樣的循環,你可能需要使用 :mod:`code` 模組。"
3741

3842
#:../../library/codeop.rst:20
3943
msgid"There are two parts to this job:"
40-
msgstr""
44+
msgstr"這個任務有兩個部分:"
4145

4246
#:../../library/codeop.rst:22
4347
msgid""
4448
"Being able to tell if a line of input completes a Python statement: in "
4549
"short, telling whether to print '``>>>``' or '``...``' next."
4650
msgstr""
51+
"能夠判斷一列輸入是否完成了一項 Python 陳述式:簡而言之,判斷接下來是列印 "
52+
"'``>>>``' 還是 '``...``'。"
4753

4854
#:../../library/codeop.rst:25
4955
msgid""
5056
"Remembering which future statements the user has entered, so subsequent "
5157
"input can be compiled with these in effect."
5258
msgstr""
59+
"記住使用者輸入了哪些未來陳述式,以便後續輸入可以在這些陳述式生效的情況下進行"
60+
"編譯。"
5361

5462
#:../../library/codeop.rst:28
5563
msgid""
5664
"The :mod:`codeop` module provides a way of doing each of these things, and a "
5765
"way of doing them both."
5866
msgstr""
67+
":mod:`codeop` 模組提供了一種完成上述每項任務的方法,以及同時完成這兩項任務的"
68+
"方法。"
5969

6070
#:../../library/codeop.rst:31
6171
msgid"To do just the former:"
62-
msgstr""
72+
msgstr"只做前者:"
6373

6474
#:../../library/codeop.rst:35
6575
msgid""
@@ -69,13 +79,20 @@ msgid ""
6979
"``'<input>'``. Returns ``None`` if *source* is *not* valid Python code, but "
7080
"is a prefix of valid Python code."
7181
msgstr""
82+
"嘗試編譯 *source*,它應該是 Python 程式碼的字串,如果 *source* 是有效的 "
83+
"Python 程式碼,則回傳一個程式碼物件 (code object)。在這種情況下,程式碼物件的"
84+
"檔案名稱屬性將為 *filename*,預設為 ``'<input>'``。如果 *source* 不是有效的 "
85+
"Python 程式碼,而是有效 Python 程式碼的前綴,則回傳 ``None``。"
7286

7387
#:../../library/codeop.rst:41
7488
msgid""
7589
"If there is a problem with *source*, an exception will be raised. :exc:"
7690
"`SyntaxError` is raised if there is invalid Python syntax, and :exc:"
7791
"`OverflowError` or :exc:`ValueError` if there is an invalid literal."
7892
msgstr""
93+
"如果 *source* 有問題,就會引發例外。如果存在無效的 Python 語法則會引發 :exc:"
94+
"`SyntaxError`;如果存在無效的文字 (literal),則會引發 :exc:`OverflowError` "
95+
"或 :exc:`ValueError`。"
7996

8097
#:../../library/codeop.rst:45
8198
msgid""
@@ -84,6 +101,9 @@ msgid ""
84101
"or as an :term:`expression` (``'eval'``). Any other value will cause :exc:"
85102
"`ValueError` to be raised."
86103
msgstr""
104+
"*symbol* 引數決定 *source* 是否編譯為陳述式(``'single'``,為預設值)、為\\ :"
105+
"term:`陳述式 <statement>`\\ 序列 (``'exec'``) 或為\\ :term:`運算式 "
106+
"<expression>` (``'eval'``)。任何其他值都會導致引發 :exc:`ValueError`。"
87107

88108
#:../../library/codeop.rst:52
89109
msgid""
@@ -93,6 +113,10 @@ msgid ""
93113
"backslash followed by two newlines may be followed by arbitrary garbage. "
94114
"This will be fixed once the API for the parser is better."
95115
msgstr""
116+
"剖析器 (parser) 有可能(但通常不會)在到達原始碼的結尾之前停止剖析並獲得成功"
117+
"的結果;在這種情況下,尾隨符號可能會被忽略而不是導致錯誤。例如,反斜線後面加"
118+
"上兩個換行符號後可以是任意的無意義符號。這個問題在未來會因為剖析器 API 的改善"
119+
"而被解決。"
96120

97121
#:../../library/codeop.rst:61
98122
msgid""
@@ -102,6 +126,9 @@ msgid ""
102126
"statement, the instance 'remembers' and compiles all subsequent program "
103127
"texts with the statement in force."
104128
msgstr""
129+
"此類別的實例具有 :meth:`~object.__call__` 方法,其簽名與內建函式 :func:"
130+
"`compile` 相同,區別在於如果實例編譯包含 :mod:`__future__` 陳述式的程式文本,"
131+
"實例會「記住」並使用該陳述式並有效地編譯所有後續程式文本。"
105132

106133
#:../../library/codeop.rst:70
107134
msgid""
@@ -111,3 +138,6 @@ msgid ""
111138
"'remembers' and compiles all subsequent program texts with the statement in "
112139
"force."
113140
msgstr""
141+
"此類別的實例具有 :meth:`~object.__call__` 方法,其簽名與內建函式 :func:"
142+
"`compile_command` 相同,區別在於如果實例編譯包含 :mod:`__future__` 陳述式的程"
143+
"式文本,實例會「記住」並使用該陳述式並有效地編譯所有後續程式文本。"

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp