The mental picture presented in the previous paragraph describing Python's object-oriented model is actually a fairly good approximation of how Python actually works.
上一段描述Python的面向对象的模型图像是对Python的实际工作方式很好的模拟。
An easy way to visualize how the dynamic typing works is to imagine a single base class called PyObject from which all other object types in Python inherit.
一种直观演示动态类型化工作方式的简单方法是,设想单个名为pyobject的基类,让Python中的所有其他对象类型都继承它。
I It takes I, which is in some sense 1 the length of those vectors, minus 1, because of the way Python works.
还有i,某种意义上,是那些向量的长度减,减1由于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 解释器位于哪个目录下,这种方法都有效。
Python support is also in the works, with a beta version available.
对Python的支持目前正在研发中,beta版本已经 可用。
The same technique works with a Python dictionary, as shown in Listing 9.
同样的技术也适用于Pythondictionary,如清单9所示。
It works just like the Python built-in function reduce , with each operation being the underlying ufunc. (the methods are much faster, though, when applied to Numerical arrays.)
reduce的工作方式如同Python中的内置函数reduce,每个操作都是基本的ufunc(不过这些方法在应用于Numerical数组时会快得多)。
It works just like the Python built-in function reduce , with each operation being the underlying ufunc. (the methods are much faster, though, when applied to Numerical arrays.)
reduce的工作方式如同Python中的内置函数reduce,每个操作都是基本的ufunc(不过这些方法在应用于Numerical数组时会快得多)。
应用推荐