In Listing 1, you'll find a short program that tries to open a file that is unlikely to exist and reports the error to whomever is running the program, using two different techniques.
在清单1中,您将看到一个简短程序,该程序尝试打开一个不太可能存在的文件,并使用两种不同的方法向运行该程序的用户报告错误。
Listing 1 shows the WSDL file that represents the CICS order validation program.
清单1显示了表示CICS订单验证程序的WSDL文件。
The commands in Listing 10 show how to run a Python program contained in a file.
清单10中的命令展示了运行一个包含于文件之中的Python程序的方法。
Now, Listing 3 shows how to read this data into a Python program and parse the contents of the file.
现在,清单3显示如何把这个数据读入Python程序,并解析文件的内容。
The complete program used to generate Figure 3 and Figure 4 is shown in Listing 4 (and included in the source file available in the Download section).
用来生成清单4所示的图3和图4的完整程序(源文件可以从下载区获得)。
Listing 4 is a simple Python command-line program that adds a software entry file using the direct SOAP API.
清单4是一个简单的Python命令行程序,用直接的SOAPAPI添加软件条目文件。
XML::Simple generally has sensible defaults, so that for example if you specify no input file name, a Perl program named part1.pl (as in Listing 4) will read a file called part1.xml.
Simple有一些合理的默认设置,例如如果没有指定输入文件名,那么Perl程序part1.pl(清单4)将读取文件part1.xml。
Show-directory shows you the directory listing where the file containing the function exists (requires program build with debugging).
show -directory显示了括功能存在的地址列表(需要有调试的程序构建)。
Just as with the program in Listing 1, you can screen-scrape this code into a file, save it as calc.tcl, chmod it as executable, and then run it.
与清单1中的程序一样,您可以将这段代码从屏幕搜集到一个文件,并将其保存为calc . tcl,使用chmod将其权限修改为可执行,然后运行该程序。
The nm program is good for listing symbols and their types and values but, for examining in greater detail the contents of those named sections of the object file, more powerful tools are necessary.
nm程序可用于列举符号及其类型和值,但是,要更仔细地研究目标文件中这些命名段的内容,需要使用功能更强大的工具。
Save the code in Listing 1 above into a file named extractStates.pl and run the program with the command cat us_states.kml | perl extractStates.pl.
把上面的清单1中的代码保存到名为extractStates.pl 的文件中,并且用cat us_states.kml |perl extractStates.pl命令运行该程序。
Most people reading this will have a to-do program, or a paper list or text file, listing not only projects and tasks but separate lists for home and work and possibly half a dozen different contexts.
大部分读这篇文章的人多少都一份待完成清单,或是一张纸单子,或是一份文档,它不仅列出了项目、任务,还根据工作、生活以及其他可能出现的种种环境进行了细分。
Most people reading this will have a to-do program, or a paper list or text file, listing not only projects and tasks but separate lists for home and work and possibly half a dozen different contexts.
大部分读这篇文章的人多少都一份待完成清单,或是一张纸单子,或是一份文档,它不仅列出了项目、任务,还根据工作、生活以及其他可能出现的种种环境进行了细分。
应用推荐