In the Python language, everything is an object a program can access, including simple types that hold integers, as well as the actual code you write and its representation in the Python interpreter.
在Python语言中,所有事物都是程序可以访问的对象,其中包括保存整数的简单类型,以及您编写的实际代码和这些代码在Python解释器中的表示。
The order of mappings in a Python dictionary is arbitrary and can vary across different Python installations or even from running the same code more than once using the same Python interpreter.
Pythondictionary中映射的次序是任意的,对于不同的 Python安装可能会有变化,甚至多次使用同一 Python解释器运行相同代码也会有变化。
The shell and its underlying library are written in Python, and PSSH is easy to install assuming that your system already has the Python interpreter and core libraries (see Listing 3).
这个shell和它的底层库是用Python编写的,如果系统上已经安装了Python解释器和核心库,就很容易安装它(见清单3)。
The Python interpreter supports interactive execution of Python code.
Python解释器支持Python代码的交互式执行。
Once you've done so, start a new Python interpreter in the directory where you saved test.py, and enter the Python statements shown in Listing 6.
完成上一步后,在您保存test .py的目录中启动一个新的Python解释器,然后输入如清单6所示的语句。
If you want to know more about the help facilities within Python, just enter help at a command prompt in the Python interpreter to access the interactive help utility (see Listing 4).
如果您想详细了解Python内的help工具,只需在Python解释器中的命令提示符下键入help,就可以访问交互式的帮助工具(参见清单4)。
After you have a working Python interpreter, the Python tutorial is a great place to start learning the language.
当您具有了正常运行的Python解释器时,Python教程是您学习该语言的理想去处。
When you type them into the Python interpreter (or if you save them in a file and execute them as a Python program), the statements are read starting on the left side and progressing to the right.
当把它们键入Python解释器中(或者将它们保存在一个文件中,并作为一个Python程序来执行)时,读取语句的顺序是从左到右。
The first command, calling the Python interpreter with the name of the file, works on any operating system on which Python is installed and where the Python interpreter is in the PATH.
第一条命令以文件名调用Python解释器,无论使用哪种系统安装 Python、Python 解释器位于哪个目录下,这种方法都有效。
But while the Python interpreter is running an application, Psyco sometimes checks to see if it can substitute some specialized machine code for regular Python bytecode actions.
但是当Python解释器运行应用程序时,Psyco会不时地检查,看是否能用一些专门的机器代码去替换常规的python字节码操作。
Download the package and unzip it under the python-home \ Lib \ directory (where python-home is the install directory for the python interpreter).
下载这个包并把它解压缩到python -home \Lib \目录下(其中,python - home是python解释器的安装目录)。
Once you press Enter following the last three-dot Python prompt, the Python interpreter starts churning away in an infinite loop.
一旦在三个点的Python提示后按enter键,Python解释器就处于无限循环的混乱中。
You can classify all the Python classes below the PyObject class into four main categories that the Python run-time interpreter USES.
可以将pyobject类之下的所有python类划分为Python运行时解释器可以使用的四个主要类别。
In fact, you can invoke the Python interpreter to only process a Python program contained in a file.
实际上,您可以调用Python解释器使其仅处理包含于一个文件中的一个Python程序。
In fact, you can invoke the Python interpreter to only process a Python program contained in a file.
实际上,您可以调用Python解释器使其仅处理包含于一个文件中的一个Python程序。
应用推荐