By default, this script will print the output to the prompt, but you can easily pipe this out to create another log file.
缺省情况下,此脚本会将输出打印到提示处,不过您可以方便地通过管道命令使用此输出创建另一个日志文件。
When I run the script on the command line and print the contents of the text configuration file, I see the output shown below.
在命令行运行该脚本并输出文本配置文件中的内容,能够看到下列输出。
The script begins to print the output to the screen. Alternatively, you can just print the output to a file by doing the following.
该脚本开始将输出打印到屏幕上。
So, inside of code, or inside of a script, there's no print, unless we make it explicit.
因此,在代码里面,或者在脚本里面,不会有显示结果的功能,除非我们让它这么做。
应用推荐