在清单2中,程序将对表达式进行四次求值,每次对一个元组求值。
In Listing 2, the program will evaluate the expression four times, once for each tuple.
程序由表达式(expression)组成。
当指定表达式的值改变时,监视点将中断程序执行,但必须在表达式中所使用的变量在作用域中时设置监视点。
A watchpoint will break program execution when the specified expression changes value, but it must be set when the variables used in the expression are in scope.
And here, too, it's just a little baby program in that I'm hardcoding the expression 17 divided by 13.
然后这里,这只是一个子程序,在那里面我硬编码了表达式“17除以13“
Most of the time, we're going to be doing expressions inside of some piece of code, inside of a script, which is the Python word for program.
大多数情况下,我们会在一些代码内部,写一些表达式,在一个脚本里面,也就是Python里面对程序的另一种叫法。
应用推荐