The Python script is now enabled as an SCA component.
python脚本现在已作为SCA组件启用。
Listing 1 presents a basic Python script to get you started.
清单1展示了一个基本的python脚本。
Listing 1 is a Python script that creates a bar chart from a set of data.
清单1是一段python脚本,可以根据一组数据创建条形图。
A developer might start by writing each batch of tests as a separate Python script.
开发人员可能先在单独的python脚本中编写每组测试。
Next, you'll add a target to the build script to execute a Python script (see Listing 2).
接下来将向构建脚本中加入新的目标,用于执行python脚本(请参阅清单2)。
Is really just a plain Python script, so it can do anything when it runs. But in almost all cases, setup.py?
您可以通过名字来猜测,setup .py其实只是普通的python脚本,所以当它运行时可以做任何事。
Figure 2 is a simple view of the Platonic solids generated by a Python script (which is included in Download).
图2是由一个python脚本(下载中也包括了这个脚本)生成的理想实体的简单视图。
The Python script that gets called by the above form does an import cgi to make sorting out its calling form easy.
以上表单调用的Python脚本将导入cgi 以使整理其调用表单变得更容易。
PyTyle is a Python script intended to mimic the behaviour of a tiling window manager within a different window manager.
PyTyle是一个致力于在不同窗口管理器中模拟平铺式窗口管理器的Python脚本。
The first is your activity source file, which is a Python script. This is shown in Listing 4 and is named TestActivity.py.
第一个是活动的源文件,它是一个python脚本,称为TestActivity. py,如清单4所示。
The temperature data and the Python script for converting the initial log format to a nicer tabular format are available for download.
可以下载温度数据以及用来将初始的日志格式转换为更好的制表格式的python脚本。
The pipe symbol indicates that the message's contents should be sent as input for the indicated program: a Python script named aci.py.
竖杠符号指定邮件内容应作为输入发送到某个指定的程序:一个名为 aci.py 的 Python脚本。
Then create a small Python script that informs Apache of the various Settings for your Django project and executes the FastCGI program.
然后创建一小段python脚本,告诉Apache您的Django项目的不同设置,并执行FastCGI程序。
Create a new subdirectory in the email directory called client, and create a Python script there called client.py. You can use this code.
在email目录中创建新的子目录client,并在其中创建Python脚本client . py。
With some fairly simple changes, you made a Python script call a Ruby script, and it just looks like a normal call to another Python module.
只需要进行一些相当简单的更改,就可以让python脚本调用ruby脚本,而且看起来与调用另一个Python模块的普通调用没有什么区别。
The Python script treats sendmail this way by opening it as if it were a text file, writing the appropriate information to it, and then "closing" it.
Python脚本就像打开文本文件一样打开sendmail,向其中写入适当的信息,然后 “关闭”它。
When we get things running, we will be able to import this function into a Python script using import foo, just like any module. The Setup file is very simple.
当我们要使用时,我们可以用importfoo;来把这个函数导入到python脚本中,就跟导入任何模块一样。
Check_ganglia is a cool Python script that you run on the same server where gmetad is running (and in my case, this is the management server where Nagios is running as well).
check_ganglia是一个很棒的python脚本,可以运行于gmetad运行的服务器上(在我的示例中是Nagios运行的管理服务器)。
I've uploaded the processed data, and the Python script I used to generate these maps, which is a modification of the code from my previous tutorial on how to make these maps.
我上传了处理过的数据,使用Python脚本产生这些地图,这个脚本是我之前关于如何制作这些地图的代码修改而来。
So, you have a Python module that provides some useful function, but as it is, there is not much that you can do with it, aside from writing a Python script that uses the methods.
那么,现在就有了提供一些有用功能的Python模块,但此模块很简单,除了编写 Python 脚本来使用其中的方法外,并不能使用其进行太多的工作。
The free Lingfo Python library does the difficult job of reading binary Excel files, so with little effort I wrote a short Python script that produces an RDF triple for each cell read in.
免费的LingfoPython库完成了读取二进制Excel文件这项困难的工作,所以我只费很少的精力编写了一个简短的 Python脚本,为读入的每个单元格产生 RDF三元组。
Although you could write these constants by hand, the string versions more or less ensure that your constants will be correct for the national language and platform your Python script is running on.
虽然可以用手写出这些常量,string版本或多或少确保了常量对于运行python脚本的国家语言和平台将是正确的。
Most of the time, we're going to be doing expressions inside of some piece of code, inside of a script, which is the Python word for program.
大多数情况下,我们会在一些代码内部,写一些表达式,在一个脚本里面,也就是Python里面对程序的另一种叫法。
The following snippet of XML in Listing 3 added to your build script will generate PyDocs for all of your Python modules.
在构建脚本中加入清单3中列出的如下xml片断,可为所有的Python模块生成pydoc。
The setup.py script can vary quite a bit in content as you browse around popular Python repositories.
当您浏览流行的Python 库时,setup.py脚本的内容可能存在相当大的差异。
Suppose, for instance, that a Python programmer wants to write a script that automatically sends a message to her cell phone when the bus she takes to work rounds a particular corner.
假设,比方说,某个Pyhon程序员想要写一个脚本,可以当她乘坐的公共汽车正好转过某个弯时,程序自动发送消息到她的手机里。
Use the new Python module plug-ins and script it.
使用新Python模块插件并撰写它的脚本。
SCA properties are handled in a similar way, with a Python object injected into the loaded script and initialized to the specified value of the property.
sca属性以类似的方式处理,会向所加载的脚本注入Python对象,并会初始化为属性的指定值。
The documentation within Python modules can be converted to Docutils document trees, and in turn to various output formats (usually within a single script).
Python模块内的文档可以转换成Docutils文档树,然后再转换成各种输出格式(通常是在单个脚本内)。
You can, for example, call a task supported by a Python worker and request that information from the earlier Perl script.
例如,您可以调用Python工人支持的任务,并从前面的Perl脚本请求信息。
应用推荐