@@ -88,6 +88,9 @@ msgid ""
8888"shell path. To uninstall Python, you can remove these three things. A "
8989"symlink to the Python executable is placed in :file:`/usr/local/bin/`."
9090msgstr ""
91+ "一个框架 :file:`/Library/Frameworks/Python.framework`,它包括 Python 可执行文件和库。 "
92+ "安装程序将此位置添加到 shell 路径。 要卸载 Python,你可以移除这三个项目。 将有一个 Python 可执行文件的符号链接放在 "
93+ ":file:`/usr/local/bin/` 中。"
9194
9295#: ../../using/mac.rst:44
9396msgid ""
@@ -100,13 +103,19 @@ msgid ""
100103"installations on your computer, so it will be important that your paths and "
101104"usages are consistent with what you want to do."
102105msgstr ""
106+ "在 macOS 10.8-12.3 上,Apple 提供的 Python 版本将分别安装在 "
107+ ":file:`/System/Library/Frameworks/Python.framework` 和 "
108+ ":file:`/usr/bin/python`。 你绝不应当修改或删除这些内容,因为它们由 Apple 控制并由 Apple 或第三方软件使用。 "
109+ "请记住如果你选择从 python.org 安装较新的 Python 版本,那么你的计算机上将有两个不同但都可用的 Python "
110+ "安装版,因此你的路径和用法与你想要执行的操作保持一致是非常重要的。"
103111
104112#: ../../using/mac.rst:52
105113msgid ""
106114"IDLE includes a Help menu that allows you to access Python documentation. If"
107115" you are completely new to Python you should start reading the tutorial "
108116"introduction in that document."
109117msgstr ""
118+ "IDLE 包括一个 Help 菜单,允许你访问 Python 文件。 如果你是完全的 Python 新手那么你应当开始阅读该文档中的教程部分。"
110119
111120#: ../../using/mac.rst:56
112121msgid ""
@@ -124,6 +133,8 @@ msgid ""
124133"integrated development environment; see section :ref:`ide` and use the Help "
125134"menu when the IDE is running."
126135msgstr ""
136+ "你在 macOS 上入门 Python 的最好方式是通过 IDLE 集成开发环境;请参阅 :ref:`ide` 章节并在 IDE 运行时使用 Help "
137+ "菜单。"
127138
128139#: ../../using/mac.rst:67
129140msgid ""
@@ -137,6 +148,12 @@ msgid ""
137148":program:`MacVim` (https://macvim.org) and :program:`Aquamacs` "
138149"(https://aquamacs.org)."
139150msgstr ""
151+ "如果你想从 Terminal 窗口命令行或 Finder 中运行 Python 脚本那么你首先需要用一个编辑器来创建你的脚本。 macOS "
152+ "自带了多个标准的 Unix 命令行编辑器,其中包括 :program:`vim` :program:`nano`。 如果你想要一个更具 Mac "
153+ "风格的编辑器,那么来自 Bare Bones Software 的 :program:`BBEdit` (参见 "
154+ "https://www.barebones.com/products/bbedit/index.html) 是一个很好的选择,还有 "
155+ ":program:`TextMate` (参见 https://macromates.com)。 其他的编辑器包括 :program:`MacVim` "
156+ "(https://macvim.org) 和 :program:`Aquamacs` (https://aquamacs.org)。"
140157
141158#: ../../using/mac.rst:77
142159msgid ""
@@ -150,7 +167,7 @@ msgstr "要从 Finder 运行你的脚本,你有两个选择:"
150167
151168#: ../../using/mac.rst:82
152169msgid "Drag it to :program:`Python Launcher`."
153- msgstr ""
170+ msgstr "将其拖拽到 :program:`Python Launcher`。 "
154171
155172#: ../../using/mac.rst:84
156173msgid ""
@@ -160,6 +177,9 @@ msgid ""
160177"your script is launched. Option-dragging allows you to change these for one "
161178"invocation, or use its Preferences menu to change things globally."
162179msgstr ""
180+ "选择 :program:`Python Launcher` 作为通过 finder Info 窗口打开脚本(或任何 ``.py`` "
181+ "脚本)和双击它时的默认应用程序。 :program:`Python Launcher` 有各种首选项来控制脚本的启动方式。 "
182+ "选项拖拽允许你为单次发起调用更改这些首选项,或使用其 Preferences 菜单进行全局性的更改。"
163183
164184#: ../../using/mac.rst:94
165185msgid "Running scripts with a GUI"
@@ -194,12 +214,17 @@ msgid ""
194214"<https://developer.apple.com/library/archive/qa/qa1067/_index.html>`__ for "
195215"details."
196216msgstr ""
217+ "macOS 上的 Python 遵循所有标准 Unix 环境变量例如 :envvar:`PYTHONPATH`,但是为从 Finder "
218+ "启动的程序设置这些变量是非标准的因为 Finder 在启动时不会读取你的 :file:`.profile` 或 :file:`.cshrc`。 "
219+ "你需要创建一个文件 :file:`~/.MacOSX/environment.plist`。 详情参见 Apple 的 `Technical Q&A "
220+ "QA1067 "
221+ "<https://developer.apple.com/library/archive/qa/qa1067/_index.html>`__。"
197222
198223#: ../../using/mac.rst:115
199224msgid ""
200225"For more information on installation Python packages, see section :ref:`mac-"
201226"package-manager`."
202- msgstr ""
227+ msgstr "有关安装 Python 包的更多信息,请参阅 :ref:`mac-package-manager` 一节。 "
203228
204229#: ../../using/mac.rst:122
205230msgid "The IDE"
@@ -211,6 +236,9 @@ msgid ""
211236"introduction to using IDLE can be found at "
212237"https://www.hashcollision.org/hkn/python/idle_intro/index.html."
213238msgstr ""
239+ "Python 附带了标准的 IDLE 开发环境。 可以在 "
240+ "https://www.hashcollision.org/hkn/python/idle_intro/index.html 找到一篇有关使用 IDLE"
241+ " 的介绍。"
214242
215243#: ../../using/mac.rst:132
216244msgid "Installing Additional Python Packages"
0 commit comments