-
-
Notifications
You must be signed in to change notification settings - Fork 214
/
Copy pathbuiltins.po
111 lines (102 loc) · 3.79 KB
/
builtins.po
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
# Copyright (C) 2001-2024, Python Software Foundation
# This file is distributed under the same license as the Python package.
#
# Translators:
# Adrian Liaw <adrianliaw2000@gmail.com>, 2018
# Matt Wang <mattwang44@gmail.com>, 2022-2024
msgid ""
msgstr ""
"Project-Id-Version: Python 3.13\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-10-22 00:13+0000\n"
"PO-Revision-Date: 2022-02-15 20:55+0800\n"
"Last-Translator: Matt Wang <mattwang44@gmail.com>\n"
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
"tw)\n"
"Language: zh_TW\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=1; plural=0;\n"
"X-Generator: Poedit 3.0.1\n"
#: ../../library/builtins.rst:2
msgid ":mod:`!builtins` --- Built-in objects"
msgstr ":mod:`!builtins` --- 內建物件"
#: ../../library/builtins.rst:9
msgid ""
"This module provides direct access to all 'built-in' identifiers of Python; "
"for example, ``builtins.open`` is the full name for the built-in function :"
"func:`open`."
msgstr ""
"該模組提供對 Python 所有'內建'識別符號的直接存取;例如 ``builtins.open`` 是內"
"建函式 :func:`open` 的全名。"
#: ../../library/builtins.rst:12
msgid ""
"This module is not normally accessed explicitly by most applications, but "
"can be useful in modules that provide objects with the same name as a built-"
"in value, but in which the built-in of that name is also needed. For "
"example, in a module that wants to implement an :func:`open` function that "
"wraps the built-in :func:`open`, this module can be used directly::"
msgstr ""
"大多數應用程式通常不會顯式地存取此模組,但在提供與內建值同名之物件的模組中可"
"能很有用,不過其中還會需要內建該名稱。例如,在一個將內建 :func:`open` 包裝起"
"來以實現另一版本 :func:`open` 函式的模組中,這個模組可以直接被使用: ::"
#: ../../library/builtins.rst:18
msgid ""
"import builtins\n"
"\n"
"def open(path):\n"
" f = builtins.open(path, 'r')\n"
" return UpperCaser(f)\n"
"\n"
"class UpperCaser:\n"
" '''Wrapper around a file that converts output to uppercase.'''\n"
"\n"
" def __init__(self, f):\n"
" self._f = f\n"
"\n"
" def read(self, count=-1):\n"
" return self._f.read(count).upper()\n"
"\n"
" # ..."
msgstr ""
"import builtins\n"
"\n"
"def open(path):\n"
" f = builtins.open(path, 'r')\n"
" return UpperCaser(f)\n"
"\n"
"class UpperCaser:\n"
" '''將輸出轉換成大寫的檔案包裝器'''\n"
"\n"
" def __init__(self, f):\n"
" self._f = f\n"
"\n"
" def read(self, count=-1):\n"
" return self._f.read(count).upper()\n"
"\n"
" # ..."
#: ../../library/builtins.rst:35
msgid ""
"As an implementation detail, most modules have the name ``__builtins__`` "
"made available as part of their globals. The value of ``__builtins__`` is "
"normally either this module or the value of this module's :attr:`~object."
"__dict__` attribute. Since this is an implementation detail, it may not be "
"used by alternate implementations of Python."
msgstr ""
"有個實作細節是,大多數模組都將名稱 ``__builtins__`` 作為其全域性變數的一部分"
"以提使用。``__builtins__`` 的值通常是這個模組或者這個模組的 :attr:`~object."
"__dict__` 屬性值。由於這是一個實作細節,因此 Python 的其他實作可能不會使用"
"它。"
#: ../../library/builtins.rst:43
msgid ":ref:`built-in-consts`"
msgstr ":ref:`built-in-consts`"
#: ../../library/builtins.rst:44
msgid ":ref:`bltin-exceptions`"
msgstr ":ref:`bltin-exceptions`"
#: ../../library/builtins.rst:45
msgid ":ref:`built-in-funcs`"
msgstr ":ref:`built-in-funcs`"
#: ../../library/builtins.rst:46
msgid ":ref:`bltin-types`"
msgstr ":ref:`bltin-types`"