In Listing 2, the program will evaluate the expression four times, once for each tuple.
在清单2中,程序将对表达式进行四次求值,每次对一个元组求值。
It will iterate over each element of the idx sequence, evaluate the expression, and add the result to the return sequence.
它将迭代id x序列中的每个元素,求得表达式的值,并将结果添加到这个返回序列。
Each expression class has an evaluate method, and an enumerate method.
每个表达式类都有一个evaluate方法和一个enumerate方法。
应用推荐