单词 | argv | ||||||||||||||
释义 | argv
更多释义 收起释义 例句释义: 命令行参数,参数列表 1. This list is similar to the argv list used in common C programs and defines the application (first element of the array) and argument list. 该列表与普通C程序中的argv列表类似,定义了应用程序(数组第一个元素)和参数列表。 www.ibm.com 2. The outer foreach loop iterates over all of the command-line parameters in the @ARGV array looking for a trigger message. 外层foreach循环迭代@ARGV数组中的所有命令行参数,查找触发器消息。 www.ibm.com 3. This loop iterates over the array, ARGV, which is the remaining set of arguments passed to the script on the command line. 该循环在数组ARGV上迭代,它是在命令行传递给脚本的余下的参数集合。 www.ibm.com 4. In my opinion the easiest solution is to parse @ARGV manually as shown in the following listing. 在我看来,最简单的解决方案是手工解析@ARGV,如下所示。 www.ibm.com 5. In particular, argv is an array of arguments to the program, the first argument being the program itself. 特别是,argv是程序的参数数组,第一个参数是程序本身。 www.ibm.com 6. Internally, Perl (similar to C) passes arguments to the script it interprets in the @ARGV array. 在内部,Perl(类似于C)将参数传递给它用@ARGV数组解释的脚本。 www.ibm.com 7. The magic of the -i switch is that it replaces each file in @ARGV with the version produced by the script's output on that file. i开关的神奇之处在于它对@ARGV中的每个文件都用该脚本对该文件输出所产生的文件版本进行替代。 www.ibm.com 8. When the script is run on the command line, this gives C-style access to the command line parameters. 当脚本运行在命令行方式时,argv变量传递给程序C语言样式的命令行参数。 cn2.php.net 9. The code in Listing 2 first looks for a parameter passed in the $argv array. 清单2中的代码首先在$argv数组中查找一个传递进来的参数。 www.ibm.com 10. For brevity, this script processes only the first extra argument, argv[1]. 为了简单起见,这个脚本只处理第一个额外参数argv[1]。 www.ibm.com 1. It simply emits the contents of the argv vector. 它只简单地打印argv向量的内容。 www.ibm.com 2. Next, define your argument list, called argv. 下一步,定义参数列表,使argv被调用。 www.ibm.com 3. For each file given on the command line (in @ARGV), I get the ID3 tag and create it if necessary. 对命令行(@ARGV中)上给出的每一个文件,我得到ID3标签,如果需要则创建它。 www.ibm.com 4. BusyBox then invokes the internal utility as defined by argv[0]. BusyBox然后可以通过argv[0]来调用内部工具。 www.ibm.com 5. In this case, you use a range to index the sys. argv list. 在这个示例中,使用range以索引sys.argv列表。 www.ibm.com 6. Others are purely stylistic convention (args, not argv; i instead of i). 其他则是纯粹的风格惯例(args而非argv;i 而非 i)。 www.ibm.com 7. Index 0 of argv is the program name that was invoked from the command line. argv的索引0是从命令行调用的程序名。 www.ibm.com 8. The variable CMD was set to "cat " sys. argv[2]. 变量CMD的值设置为“cat” sys.argv[2]。 www.ibm.com 9. Script 6. pl recognizes UTF-8 data in @ARGV (6_out. txt shows a sample run of 6. pl). 脚本6.pl可以识别@ARGV中的UTF-8数据(6_out.txt显示了一个运行6.pl的样例输出)。 www.ibm.com 10. The first argv element (0) is the program name (that is, echo. py). 第一个argv元素(0)是程序名(即echo.py)。 www.ibm.com 1. For example, you can access parameters passed to scripts on the command line using the sys. argv variable. 例如,可以使用sys.argv变量在命令行中访问传递给脚本的参数。 www.ibm.com 2. Note that in Listing 3, the same requirements exist to set up and make the call (such as initializing the argv and envp arrays). 请注意在清单3中,有着同样的安装并调用(例如初始化argv和envp数组)的需求。 www.ibm.com |
||||||||||||||
随便看 |
|
英汉双解词典包含2704715条英汉词条,基本涵盖了全部常用单词的翻译及用法,是英语学习的有利工具。