The other side effect is that because the invocation of print is done indirectly through reflection, the method must be public (and accept no arguments).
另一个副作用是由于对print的调用是通过反射间接进行的,所以这个方法必须是公共的(并且不接受参数)。
Our final sed example uses the = command to print line numbers and then filter the resulting output through sed again to mimic the effect of the nl command to number lines.
最后一个 sed 示例使用 = 命令输出行号,然后再次使用 sed 过滤生成的输出,以模拟使用 nl 命令对行进行编号的效果。
应用推荐