运行 ps 命令,并将结果分配给一个列表(第 7 行到第 8 行)。
Run the ps command and assign the results to a list (lines 7-8).
foreach行上缺少的列表并不是输入错误:如果您省略某个列表,则foreach结构将处理命令行上给出的参数列表。
The missing list on the foreach line isn't a typo: If you omit a list, the foreach structure processes the list of arguments given on the command line.
应用推荐