GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — python-docs-zh-cn/using/mac.po at 3.8 · python/python-docs-zh-cn Expand file tree/ Copy pathmac.poMore file actions 341 lines (297 loc) · 15.1 KB / Copy pathmac.poFile metadata and controls341 lines (297 loc) · 15.1 KB 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 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 # SOME DESCRIPTIVE TITLE. # Copyright (C) 2001-2021, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. # # Translators: # cdarlint <[email protected]>, 2020 # ww song <[email protected]>, 2020 # Freesand Leo <[email protected]>, 2020 # Alpha Du <[email protected]>, 2020 # ppcfish <[email protected]>, 2020 # #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.8\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2021-01-01 16:06+0000\n" "PO-Revision-Date: 2020-05-30 12:17+0000\n" "Last-Translator: ppcfish <[email protected]>, 2020\n" "Language-Team: Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: zh_CN\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../using/mac.rst:6 msgid "Using Python on a Macintosh" msgstr "在苹果系统上使用 Python" #: ../../using/mac.rst:0 msgid "Author" msgstr "作者" #: ../../using/mac.rst:8 msgid "Bob Savage <[email protected]>" msgstr "Bob Savage <[email protected]>" #: ../../using/mac.rst:11 msgid "" "Python on a Macintosh running Mac OS X is in principle very similar to " "Python on any other Unix platform, but there are a number of additional " "features such as the IDE and the Package Manager that are worth pointing " "out." msgstr "" "运行 Mac OS X 的 Macintosh上 的 Python 原则上与任何其他 Unix 平台上的 Python " "非常相似,但是还有一些额外的功能,例如 IDE 和包管理器,值得一提。" #: ../../using/mac.rst:18 msgid "Getting and Installing MacPython" msgstr "获取和安装 MacPython" #: ../../using/mac.rst:20 msgid "" "Mac OS X 10.8 comes with Python 2.7 pre-installed by Apple. If you wish, " "you are invited to install the most recent version of Python 3 from the " "Python website (https://www.python.org). A current \"universal binary\" " "build of Python, which runs natively on the Mac's new Intel and legacy PPC " "CPU's, is available there." msgstr "" "Mac OS X 10.8 附带 Apple 预安装的 Python 2.7 。 如果你愿意,可以从 Python 网站( " "https://www.python.org )安装最新版本的 Python 3 。 Python 的当前“通用二进制”版本可以在 Mac 的新 " "Intel 和传统 PPC CPU 上本地运行。" #: ../../using/mac.rst:26 msgid "What you get after installing is a number of things:" msgstr "你安装后得到的东西有:" #: ../../using/mac.rst:28 msgid "" "A :file:`Python 3.8` folder in your :file:`Applications` folder. In here you" " find IDLE, the development environment that is a standard part of official " "Python distributions; and PythonLauncher, which handles double-clicking " "Python scripts from the Finder." msgstr "" "会有一个 :file:`Python 3.8` 文件夹在你的 :file:`Applications` 文件夹中。 在这里你可以找到 " "IDLE,它是作为官方 Python 发行版标准组成部分的开发环境;以及 PythonLauncher,它负责处理在 Finder 中双击 Python" " 脚本的操作。" #: ../../using/mac.rst:33 msgid "" "A framework :file:`/Library/Frameworks/Python.framework`, which includes the" " Python executable and libraries. The installer adds this location to your " "shell path. To uninstall MacPython, you can simply remove these three " "things. A symlink to the Python executable is placed in /usr/local/bin/." msgstr "" "框架 :file:`/Library/Frameworks/Python.framework` ,包括 Python " "可执行文件和库。安装程序将此位置添加到 shell 路径。 要卸载 MacPython ,你可以简单地移除这三个项目。 Python " "可执行文件的符号链接放在 /usr/local/bin/ 中。" #: ../../using/mac.rst:38 msgid "" "The Apple-provided build of Python is installed in " ":file:`/System/Library/Frameworks/Python.framework` and " ":file:`/usr/bin/python`, respectively. You should never modify or delete " "these, as they are Apple-controlled and are used by Apple- or third-party " "software. Remember that if you choose to install a newer Python version " "from python.org, you will have two different but functional Python " "installations on your computer, so it will be important that your paths and " "usages are consistent with what you want to do." msgstr "" "Apple 提供的 Python 版本分别安装在 :file:`/System/Library/Frameworks/Python.framework`" " 和 :file:`/usr/bin/python` 中。 你永远不应修改或删除这些内容,因为它们由 Apple 控制并由 Apple " "或第三方软件使用。 请记住,如果你选择从 python.org 安装较新的 Python 版本,那么你的计算机上将安装两个不同但都有用的 Python " ",因此你的路径和用法与你想要执行的操作一致非常重要。" #: ../../using/mac.rst:46 msgid "" "IDLE includes a help menu that allows you to access Python documentation. If" " you are completely new to Python you should start reading the tutorial " "introduction in that document." msgstr "IDLE 包含一个帮助菜单,允许你访问 Python 文档。 如果您是 Python 的新手,你应该开始阅读该文档中的教程介绍。" #: ../../using/mac.rst:50 msgid "" "If you are familiar with Python on other Unix platforms you should read the " "section on running Python scripts from the Unix shell." msgstr "如果你熟悉其他 Unix 平台上的 Python ,那么你应该阅读有关从 Unix shell 运行 Python 脚本的部分。" #: ../../using/mac.rst:55 msgid "How to run a Python script" msgstr "如何运行 Python 脚本" #: ../../using/mac.rst:57 msgid "" "Your best way to get started with Python on Mac OS X is through the IDLE " "integrated development environment, see section :ref:`ide` and use the Help " "menu when the IDE is running." msgstr "" "在 Mac OS X 上开始使用 Python 的最佳方法是通过 IDLE 集成开发环境,参见 :ref:`ide` 部分,并在 IDE " "运行时使用“帮助”菜单。" #: ../../using/mac.rst:61 msgid "" "If you want to run Python scripts from the Terminal window command line or " "from the Finder you first need an editor to create your script. Mac OS X " "comes with a number of standard Unix command line editors, :program:`vim` " "and :program:`emacs` among them. If you want a more Mac-like editor, " ":program:`BBEdit` or :program:`TextWrangler` from Bare Bones Software (see " "http://www.barebones.com/products/bbedit/index.html) are good choices, as is" " :program:`TextMate` (see https://macromates.com/). Other editors include " ":program:`Gvim` (http://macvim-dev.github.io/macvim/) and " ":program:`Aquamacs` (http://aquamacs.org/)." msgstr "" "如果要从终端窗口命令行或 Finder 运行 Python 脚本,首先需要一个编辑器来创建脚本。 Mac OS X 附带了许多标准的 Unix " "命令行编辑器,如 :program:`vim` 和 :program:`emacs` 。 如果你想要一个更 Mac " "化的编辑器,那么:program:`BBEdit` 或来自 Bare Bones Software 的 :program:`TextWrangler` " "(参见 http://www.barebones.com/products/bbedit/index.html )是不错的选择 ,就如 " ":program:`TextMate`(参见 https://macromates.com/ )。 其他编辑器包括 :program:`Gvim` ( " "http://macvim-dev.github.io/macvim/ )和 :program:`Aquamacs` ( " "http://aquamacs.org/ )。" #: ../../using/mac.rst:71 msgid "" "To run your script from the Terminal window you must make sure that " ":file:`/usr/local/bin` is in your shell search path." msgstr "要从终端窗口运行脚本,必须确保:file:`/usr/local/bin` 位于 shell 搜索路径中。" #: ../../using/mac.rst:74 msgid "To run your script from the Finder you have two options:" msgstr "要从 Finder 运行你的脚本,你有两个选择:" #: ../../using/mac.rst:76 msgid "Drag it to :program:`PythonLauncher`" msgstr "把脚本拖拽到 :program:`PythonLauncher`" #: ../../using/mac.rst:78 msgid "" "Select :program:`PythonLauncher` as the default application to open your " "script (or any .py script) through the finder Info window and double-click " "it. :program:`PythonLauncher` has various preferences to control how your " "script is launched. Option-dragging allows you to change these for one " "invocation, or use its Preferences menu to change things globally." msgstr "" "选择 :program:`PythonLauncher` 作为通过 finder Info 窗口打开脚本(或任何 .py " "脚本)的默认应用程序,然后双击脚本。 :program:`PythonLauncher` 有各种首选项来控制脚本的启动方式。 " "拖拽方式允许你为一次调用更改这些选项,或使用其“首选项”菜单全局更改内容。" #: ../../using/mac.rst:88 msgid "Running scripts with a GUI" msgstr "运行有图形界面的脚本" #: ../../using/mac.rst:90 msgid "" "With older versions of Python, there is one Mac OS X quirk that you need to " "be aware of: programs that talk to the Aqua window manager (in other words, " "anything that has a GUI) need to be run in a special way. Use " ":program:`pythonw` instead of :program:`python` to start such scripts." msgstr "" "对于旧版本的 Python ,你需要注意一个 Mac OS X 的怪异之处:与 Aqua " "窗口管理器通信的程序(换而言之,任何具有图形界面的程序)需要以特殊方式运行。 使用 :program:`pythonw` 而不是 " ":program:`python` 来启动这样的脚本。" #: ../../using/mac.rst:95 msgid "" "With Python 3.8, you can use either :program:`python` or :program:`pythonw`." msgstr "对于Python 3.8,可以使用 :program:`python` 或 :program:`pythonw`" #: ../../using/mac.rst:99 msgid "Configuration" msgstr "配置" #: ../../using/mac.rst:101 msgid "" "Python on OS X honors all standard Unix environment variables such as " ":envvar:`PYTHONPATH`, but setting these variables for programs started from " "the Finder is non-standard as the Finder does not read your :file:`.profile`" " or :file:`.cshrc` at startup. You need to create a file " ":file:`~/.MacOSX/environment.plist`. See Apple's Technical Document QA1067 " "for details." msgstr "" "OS X 上的 Python 遵循所有标准的 Unix 环境变量,例如 :envvar:`PYTHONPATH` ,但是为 Finder " "启动的程序设置这些变量是非标准的,因为 Finder 在启动时不读取你的 :file:`.profile` 或 :file:`.cshrc` " "。你需要创建一个文件 :file:`~/.MacOSX/environment.plist` 。 有关详细信息,请参阅 Apple 的技术文档 " "QA1067 。" #: ../../using/mac.rst:108 msgid "" "For more information on installation Python packages in MacPython, see " "section :ref:`mac-package-manager`." msgstr "更多关于在 MacPython 中安装 Python 包的信息,参阅 :ref:`mac-package-manager` 部分。" #: ../../using/mac.rst:115 msgid "The IDE" msgstr "IDE" #: ../../using/mac.rst:117 msgid "" "MacPython ships with the standard IDLE development environment. A good " "introduction to using IDLE can be found at " "http://www.hashcollision.org/hkn/python/idle_intro/index.html." msgstr "" "MacPython 附带标准的 IDLE 开发环境。 有关使用 IDLE 的详细介绍,请访问 " "http://www.hashcollision.org/hkn/python/idle_intro/index.html 。" #: ../../using/mac.rst:125 msgid "Installing Additional Python Packages" msgstr "安装额外的 Python 包" #: ../../using/mac.rst:127 msgid "There are several methods to install additional Python packages:" msgstr "有几个方法可以安装额外的 Python 包:" #: ../../using/mac.rst:129 msgid "" "Packages can be installed via the standard Python distutils mode (``python " "setup.py install``)." msgstr "可以通过标准的 Python distutils 模式( ``python setup.py install`` )安装软件包。" #: ../../using/mac.rst:132 msgid "" "Many packages can also be installed via the :program:`setuptools` extension " "or :program:`pip` wrapper, see https://pip.pypa.io/." msgstr "" "许多包也可以通过 :program:`setuptools` 扩展或 :program:`pip` 包装器安装,请参阅 " "https://pip.pypa.io/ 。" #: ../../using/mac.rst:137 msgid "GUI Programming on the Mac" msgstr "Mac 上的图形界面编程" #: ../../using/mac.rst:139 msgid "" "There are several options for building GUI applications on the Mac with " "Python." msgstr "使用 Python 在 Mac 上构建 GUI 应用程序有多种选择。" #: ../../using/mac.rst:141 msgid "" "*PyObjC* is a Python binding to Apple's Objective-C/Cocoa framework, which " "is the foundation of most modern Mac development. Information on PyObjC is " "available from https://pypi.org/project/pyobjc/." msgstr "" "*PyObjC* 是一个 Python 到 Apple 的 Objective-C/Cocoa 框架的绑定,这是大多数现代 Mac 开发的基础。 有关 " "PyObjC 的信息,请访问 https://pypi.org/project/pyobjc/。" #: ../../using/mac.rst:145 msgid "" "The standard Python GUI toolkit is :mod:`tkinter`, based on the cross-" "platform Tk toolkit (https://www.tcl.tk). An Aqua-native version of Tk is " "bundled with OS X by Apple, and the latest version can be downloaded and " "installed from https://www.activestate.com; it can also be built from " "source." msgstr "" "标准的 Python GUI 工具包是 :mod:`tkinter` ,基于跨平台的 Tk 工具包( https://www.tcl.tk )。 " "Apple 的 OS X 捆绑了 Aqua 原生版本的 Tk ,最新版本可以从 https://www.activestate.com " "下载和安装;它也可以从源代码构建。" #: ../../using/mac.rst:150 msgid "" "*wxPython* is another popular cross-platform GUI toolkit that runs natively " "on Mac OS X. Packages and documentation are available from " "https://www.wxpython.org." msgstr "" "*wxPython* 是另一种流行的跨平台 GUI 工具包,可在 Mac OS X 上本机运行。软件包和文档可从 " "https://www.wxpython.org 获得。" #: ../../using/mac.rst:153 msgid "" "*PyQt* is another popular cross-platform GUI toolkit that runs natively on " "Mac OS X. More information can be found at " "https://riverbankcomputing.com/software/pyqt/intro." msgstr "" "*PyQt* 是另一种流行的跨平台 GUI 工具包,可在 Mac OS X 上本机运行。更多信息可在 " "https://riverbankcomputing.com/software/pyqt/intro 上找到。" #: ../../using/mac.rst:159 msgid "Distributing Python Applications on the Mac" msgstr "在 Mac 上分发 Python 应用程序" #: ../../using/mac.rst:161 msgid "" "The standard tool for deploying standalone Python applications on the Mac is" " :program:`py2app`. More information on installing and using py2app can be " "found at http://undefined.org/python/#py2app." msgstr "" "在 Mac 上部署独立 Python 应用程序的标准工具是 :program:`py2app` 。有关安装和使用 py2app 的更多信息,请访问 " "http://undefined.org/python/#py2app 。" #: ../../using/mac.rst:167 msgid "Other Resources" msgstr "其他资源" #: ../../using/mac.rst:169 msgid "" "The MacPython mailing list is an excellent support resource for Python users" " and developers on the Mac:" msgstr "MacPython 邮件列表是 Mac 上 Python 用户和开发人员的优秀支持资源:" #: ../../using/mac.rst:172 msgid "https://www.python.org/community/sigs/current/pythonmac-sig/" msgstr "https://www.python.org/community/sigs/current/pythonmac-sig/" #: ../../using/mac.rst:174 msgid "Another useful resource is the MacPython wiki:" msgstr "另一个有用的资源是 MacPython wiki :" #: ../../using/mac.rst:176 msgid "https://wiki.python.org/moin/MacPython" msgstr "https://wiki.python.org/moin/MacPython" |
| You are visitor 01402520 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |