Listing 2 doesn't show this technique, but the apply method allows you to perform an action for each selected element.
清单2没有展示这个技术,但是apply方法允许对每个选中元素执行一个操作。
The example in listing 1 uses this technique to invoke the onClickButton method.
清单 1 的例子使用这种技术调用 onClickButton 方法。
To demonstrate the basic technique, Listing 1 shows Python code that USES dynamic features to log all invocations of a remote method to standard error on the console.
为了示范基本的技术,清单1中的Python代码使用动态特性将所有的远程方法调用记录到控制台的标准错误中。
应用推荐