Note: I tested this code with Python version 2.6.4.
注意:我使用Python2.6.4版测试这个代码。
Invoke the demonstration with python fraggle.py.
使用pythonfraggle . py可以调用该演示。
I tested the sample application with Python V2.5.2.
我使用PythonV2.5.2测试这个示例应用程序。
Compared with Python, the Jython project develops at a slower pace.
与Python相比,Jython项目的开发速度较慢。
You use monkeyrunner with Python programs to test applications and devices.
你在Python程序中使用monkeyrunner来测试程序和设备。
With Python 2.2, we gained a new mechanism for creating "restricted" classes.
使用Python 2.2,我们获得了一种创建 “限制”类的新机制。
Animal shows okay, can and animal stars photo, you can also interact with python.
动物表演还好吧,可以和动物明星合影,还可以和蟒蛇互动。
All right. If that sounds like a really long preamble, it is. Let's start with Python.
好,如果上面听起来像一个很长的序文,他确实是,让我们从Python开始。
It is very similar to listing comprehensions in Python, if you are familiar with Python.
如果对Python十分熟悉,不难发现它非常类似于Python内的列表推导式(listing comprehension)。
It initializes GObject and the trayicon module, and then registers the classes with Python.
它初始化gobject和trayicon模块,然后向Python注册这些类。
Actually, it's very easy to create powerful and truly cross-platform user interfaces with Python.
其实,利用Python可以很容易地创建出强大且真正意义上跨平台的用户界面。
Listing 15 can use either MySQL, which is easy to install, or sqlite3, which ships with Python.
清单15可以使用MySQL(它很容易安装)或sqlite3(它是Python附带的)。
As with Python, it is possible to use the Qt toolkit from a number of other programming languages.
如同Python,从大量其它编程语言使用Qt工具箱是可能的。
Starting with Python 2.0, Python includes most of the XML-SIG project in its standard distribution.
从Python 2.0开始,Python在其标准发行版中包括大多数XML - SIG项目。
Zope scripts are a new feature with Python 2.3, and they are intended to supplant External Methods.
zope脚本是Python 2.3的一个想用来代替外部方法的新功能。
To gather the timing information, you will simply use the time.time function call available with Python.
要收集时间开销信息,您只需使用Python提供的time . time函数调用即可。
This is not extremely exciting, but you can certainly go on to do a lot more interesting things with Python and GTK.
这不是非常有趣,但您尽可以利用Python和GTK 进行更加有趣的操作。
This pattern is a very common and recommended way to use threads with Python. The steps are described as follows.
在Python中使用线程时,这个模式是一种很常见的并且推荐使用的方式。
The backward incompatibility with Python 1.5 is unfortunate, but it would be too unwieldy to maintain it in this case.
不能与Python 1.5向后兼容固然令人遗憾,但保留它实在难以做到。
With Python installed, you need to visit the ReportLab Download page before you begin your PDF programming career.
安装了Python之后,在开始PDF编程工作以前,您需要访问ReportLab下载页面。
The only caveat here is that although Python's current version is 2.1 as of this writing, Zope still runs only with Python 1.5.2.
这里唯一要提醒的是在写本文的时候,Python的当前版本是 2.1,但是Zope仍然只能和 Python1.5.2 一起运行。
Of course, that doesn't mean other bindings aren't good, but if you enjoy working with Python, you're sure to like PyGTK as well.
当然,这并不意味着其他绑定不好,但如果喜欢使用Python,您也一定会喜欢使用PyGTK。
To close, let me present one more generator example that comes from the test_generators.py module distributed with Python 2.2.
作为结束,让我再介绍一个生成器示例,它来自随python 2.2一同分发的test_generators . py模块。
This article provides two methods of doing so: a plain way with PHP, and a more elaborate way, using appropriate modules, with Python.
本文提供两种方法:一种方法是使用PHP,这种方法比较简单;另一种更详尽的方法是使用Python,这种方法使用适当的模块。
Given the effective requirement for Python 2.0 in terms of the XML packages, I also allowed in a few other changes with Python 2.0 syntax.
假设在XML软件包方面有对Python 2.0的有效需求,我也允许对Python 2.0语法进行一些其它的更改。
It was not many years ago that nearly every project built with Python seemed to have its own idioms and practices for writing and running tests.
仅仅在几年前,几乎每个用Python构建的项目在编写和运行测试方面都采用自己的习惯做法。
The implementation of dom that comes with Python 2.0 is called xml.dom.minidom, and provides a lightweight and small footprint version of dom.
Python 2.0中自带的dom实现被称为xml . dom .minidom,并提供轻量级和小型版本的dom。
With Python, the subprocess module handles making the system call to the shell command, and puts it into a list, called in array in Bash or PHP.
对于Python,子过程模块处理对Shell命令的系统调用,并将输出发在一个列表(在Bash和PHP中称为数组)中。
I'm working on a small game with a physical interface that requires me to write a character to the serial port with python every time a particular file in a directory is modified.
我工作的一个物理接口,要求我写一个汉字每一次目录中的特定文件的修改,使用串口小游戏。
I'm working on a small game with a physical interface that requires me to write a character to the serial port with python every time a particular file in a directory is modified.
我工作的一个物理接口,要求我写一个汉字每一次目录中的特定文件的修改,使用串口小游戏。
应用推荐