Perl的-p选项告诉它读取和处理标准输入中的每行内容,并将结果打印到标准输出。
Perl's -p option tells it to read and process each line from standard input and print the results to standard output.
该进程被主子例程(标为:main以告诉Parrot首先运行它)调用以打印结果。
This process is called by the main subroutine (labeled with: main to tell Parrot to run it first) to print the result.
好了,它只是不会打印任何结果而已。
此输出与前面带标记的版本区别非常大,因为它只是使用顶部注入的print语句来打印的未经筛选的df—h命令结果。
This output is very different from the previous — flagged — version, because it is just the unfiltered results of df -h with a print statement injected at the top.
清单12展示了xpathevaluator类的一个非常基本的附加功能,它传入一个XPath以进行计算,获得结果并将其打印出来。
Listing 12 shows a very basic addition to the XPathEvaluator class that passes in an XPath to evaluate, gets the results, and prints them out.
在本例中,首先将打印nathan结果,因为它的六个字母(向量)中有五个共有字母,而其次将打印jonathan,因为它的八个字母中只有五个共有字母。
In this case, the Nathan result will be printed first because it has five of six letters (vectors) in common, and Jonathan will be printed second because it only has five of eight letters in common.
在它接收到两条响应之后,Coordinator打印出比赛结果并自我发送一条消息,以开始新游戏。
After it has received two responses, the Coordinator prints the outcome of the match and sends a message to itself to start a new game.
C程序的运行结果就是现实问题的解决方案,把它记录到文件中,必要时还需打印输出。
The running results of C program is the solution of our problems, which is recorded it to a file and prints out if necessary.
C程序的运行结果就是现实问题的解决方案,把它记录到文件中,必要时还需打印输出。
The running results of C program is the solution of our problems, which is recorded it to a file and prints out if necessary.
应用推荐