1
- # SOME DESCRIPTIVE TITLE.
2
- # Copyright (C) 2001-2022, Python Software Foundation
1
+ # Copyright (C) 2001-2024, Python Software Foundation
3
2
# This file is distributed under the same license as the Python package.
4
3
#
5
4
# Translators:
5
+ # Liang-Bo Wang <[email protected] >, 2016
6
+ # Matt Wang <[email protected] >, 2024
6
7
msgid ""
7
8
msgstr ""
8
9
"Project-Id-Version : Python 3.13\n "
9
10
"Report-Msgid-Bugs-To : \n "
10
11
"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 <[email protected] >\n"
12
+ "PO-Revision-Date : 2024-09-24 20 :28+0000\n "
13
+ "
Last-Translator :
Matt Wang <[email protected] >\n"
13
14
"Language-Team : Chinese - TAIWAN (https://github.com/python/python-docs-zh- "
14
15
"tw)\n "
15
16
"Language : zh_TW\n "
@@ -27,87 +28,125 @@ msgid "**Source code:** :source:`Lib/codeop.py`"
27
28
msgstr "**原始碼:**\\ :source:`Lib/codeop.py`"
28
29
29
30
#: ../../library/codeop.rst:14
31
+ #, fuzzy
30
32
msgid ""
31
33
"The :mod:`codeop` module provides utilities upon which the Python read-eval-"
32
34
"print loop can be emulated, as is done in the :mod:`code` module. As a "
33
35
"result, you probably don't want to use the module directly; if you want to "
34
36
"include such a loop in your program you probably want to use the :mod:`code` "
35
37
"module instead."
36
38
msgstr ""
39
+ "codeop 模組提供了可以模擬 Python read-eval-print 循環的實用程序,就像在 code "
40
+ "模組中所做的那樣。 因此,您可能不想直接使用該模組;如果您想在程式中包含這樣"
41
+ "的循環,您可能需要使用:mod:`code` 模組。"
37
42
38
43
#: ../../library/codeop.rst:20
44
+ #, fuzzy
39
45
msgid "There are two parts to this job:"
40
- msgstr ""
46
+ msgstr "這項工作有兩個部分: "
41
47
42
48
#: ../../library/codeop.rst:22
49
+ #, fuzzy
43
50
msgid ""
44
51
"Being able to tell if a line of input completes a Python statement: in "
45
52
"short, telling whether to print '``>>>``' or '``...``' next."
46
53
msgstr ""
54
+ "能夠判斷一行輸入是否完成了一條 Python 語句:簡而言之,判斷接下來是列印 "
55
+ "'``>>>``' 還是 '``...``'。"
47
56
48
57
#: ../../library/codeop.rst:25
58
+ #, fuzzy
49
59
msgid ""
50
60
"Remembering which future statements the user has entered, so subsequent "
51
61
"input can be compiled with these in effect."
52
62
msgstr ""
63
+ "記住使用者輸入了哪些未來語句,以便後續輸入可以在這些語句生效的情況下進行編"
64
+ "譯。"
53
65
54
66
#: ../../library/codeop.rst:28
67
+ #, fuzzy
55
68
msgid ""
56
69
"The :mod:`codeop` module provides a way of doing each of these things, and a "
57
70
"way of doing them both."
58
71
msgstr ""
72
+ "codeop 模組提供了一種完成上述每項任務的方法,以及同時完成這兩項任務的方法。"
59
73
60
74
#: ../../library/codeop.rst:31
75
+ #, fuzzy
61
76
msgid "To do just the former:"
62
- msgstr ""
77
+ msgstr "只做前者: "
63
78
64
79
#: ../../library/codeop.rst:35
80
+ #, fuzzy
65
81
msgid ""
66
82
"Tries to compile *source*, which should be a string of Python code and "
67
83
"return a code object if *source* is valid Python code. In that case, the "
68
84
"filename attribute of the code object will be *filename*, which defaults to "
69
85
"``'<input>'``. Returns ``None`` if *source* is *not* valid Python code, but "
70
86
"is a prefix of valid Python code."
71
87
msgstr ""
88
+ "嘗試編譯 *source*,它應該是 Python 程式碼的字串,如果 *source* 是有效的 "
89
+ "Python 程式碼,則傳回一個程式碼物件。 在這種情況下,程式碼物件的檔案名稱屬性"
90
+ "將為*filename*,預設為``'<input>'``。 如果 *source* 不是有效的 Python 程式"
91
+ "碼,而是有效 Python 程式碼的前綴,則傳回「None」。"
72
92
73
93
#: ../../library/codeop.rst:41
94
+ #, fuzzy
74
95
msgid ""
75
96
"If there is a problem with *source*, an exception will be raised. :exc:"
76
97
"`SyntaxError` is raised if there is invalid Python syntax, and :exc:"
77
98
"`OverflowError` or :exc:`ValueError` if there is an invalid literal."
78
99
msgstr ""
100
+ "如果 *source* 有問題,則會引發例外。如果存在無效的 Python 語法,則會引發 "
101
+ "SyntaxError;如果存在無效的文字,則會引發 OverflowError 或 ValueError。"
79
102
80
103
#: ../../library/codeop.rst:45
104
+ #, fuzzy
81
105
msgid ""
82
106
"The *symbol* argument determines whether *source* is compiled as a statement "
83
107
"(``'single'``, the default), as a sequence of :term:`statement` (``'exec'``) "
84
108
"or as an :term:`expression` (``'eval'``). Any other value will cause :exc:"
85
109
"`ValueError` to be raised."
86
110
msgstr ""
111
+ "*symbol* 參數決定 *source* 是否編譯為語句(“single”,預設值)、語句序列"
112
+ "(“exec”)或編譯為:term:`表達式` (``'eval'``)。 任何其他值都會導致引發 "
113
+ "ValueError 。"
87
114
88
115
#: ../../library/codeop.rst:52
116
+ #, fuzzy
89
117
msgid ""
90
118
"It is possible (but not likely) that the parser stops parsing with a "
91
119
"successful outcome before reaching the end of the source; in this case, "
92
120
"trailing symbols may be ignored instead of causing an error. For example, a "
93
121
"backslash followed by two newlines may be followed by arbitrary garbage. "
94
122
"This will be fixed once the API for the parser is better."
95
123
msgstr ""
124
+ "解析器有可能(但不太可能)在到達來源末尾之前停止解析並獲得成功的結果;在這種"
125
+ "情況下,尾隨符號可能會被忽略,而不會導致錯誤。 例如,反斜線後面跟著兩個換行"
126
+ "符號可能後面跟著任意垃圾。一旦解析器的 API 更好,這個問題就會解決。"
96
127
97
128
#: ../../library/codeop.rst:61
129
+ #, fuzzy
98
130
msgid ""
99
131
"Instances of this class have :meth:`~object.__call__` methods identical in "
100
132
"signature to the built-in function :func:`compile`, but with the difference "
101
133
"that if the instance compiles program text containing a :mod:`__future__` "
102
134
"statement, the instance 'remembers' and compiles all subsequent program "
103
135
"texts with the statement in force."
104
136
msgstr ""
137
+ "此類的實例具有 :meth:`~object.__call__` 方法,其簽名與內建函式 :func:"
138
+ "`compile` 相同,但區別在於,如果實例編譯包含 :mod:`__future__` 的程式文本語"
139
+ "句,實例“記住」並使用該語句有效地編譯所有後續程式文字。"
105
140
106
141
#: ../../library/codeop.rst:70
142
+ #, fuzzy
107
143
msgid ""
108
144
"Instances of this class have :meth:`~object.__call__` methods identical in "
109
145
"signature to :func:`compile_command`; the difference is that if the instance "
110
146
"compiles program text containing a :mod:`__future__` statement, the instance "
111
147
"'remembers' and compiles all subsequent program texts with the statement in "
112
148
"force."
113
149
msgstr ""
150
+ "此類的實例具有與 :func:`compile_command` 簽章相同的 :meth:`~object.__call__` "
151
+ "方法;區別在於,如果實例編譯包含 __future__` 語句的程式文本,則實例會「記住」"
152
+ "並使用該語句有效地編譯所有後續程式文本。"
0 commit comments