A method consists of a set of program statements that have been collected together and given a name.
方法包含了集中在一起的程序语句的集合,并给予它们一个名字。
This article has introduced three Python program statements: the if statement, the while loop, and the for loop.
本文介绍了三种Python程序语句:if语句、while循环和for循环。
Notice how the program statements in Listing 3 that extend over more than one line are indented to improve readability.
注意清单3中扩展到多个行的程序语句是如何缩进以改善可读性的。
This means the program statements executed in the loop body must change the value of the expression — or else the loop will never end.
这意味着循环体中执行的程序语句必须要改变表达式的值,否则循环将无法结束。
A compound statement consists of a flow control instruction, followed by a colon character (:), followed by a block of program statements.
一个复合语句包括一个流控制指令,后跟一个冒号(:),然后再是一个程序语句块。
Sometimes, however, it's desirable to place multiple program statements on a single line -- when you're initializing variables, for example.
然而,有时候需要在一行放多个程序语句,例如初始化变量时。
The second type of flow control statement in Python is the while loop, which executes a block of program statements while an expression evaluates True.
Python中的第二种流控制语句是while循环,它在一个表达式计算为True时执行一个程序语句块。
The if statement supports an optional else clause that indicates a block of program statements that should be processed if the Boolean expression evaluates False.
if语句支持一个可选的else子句,指示当布尔表达式计算为False时应该处理的程序语句块。
The while loop, as was the case with the if statement, supports an optional else clause containing a block of program statements executed when the expression is False.
while循环与if语句一样,支持一个可选的else子句,其中包含一个当表达式计算为False时执行的程序语句块。
Up to this point, you've seen how the if statement can be used to execute one of two blocks of program statements, depending on the value of a particular Boolean expression.
至此,已经看到了if语句可以如何用于根据一个特定布尔表达式的值,来执行两个程序语句块中的其中一个。
The Python interpreter, at its simplest level, operates in a similar manner, starting at the top of a program and sequentially executing program statements in a linear fashion.
Python解释器在其最简单的级别,以类似的方式操作,即从程序的顶端开始,然后一行一行地顺序执行程序语句。
If you take a holistic look of this program, I'm certain you could have told me what it did even before you knew what any of its statements really did.
如果你从整体上来看这个程序,我很确定即便你不了解每一条单独语句的作用,你也能告诉我这个程序是干什么的。
Let's start by looking at a common technique in many PHP applications: placing certain kinds of information in variable assignment statements at the top of the program.
让我们首先查看许多PHP应用程序中的一项常用技术;将某些种类的信息存入程序开头的变量赋值语句中。
A LISP program can read LISP statements from a text file and execute them as if they were part of the original program.
LISP程序可以从文本文件中读取语句,并且好像它们是原始程序一部分一样执行它们。
When the program was okay, those statements were removed and the program was sent to be installed in production.
当程序一切正常时,删除这些语句并且发送该程序以便在生产环境中安装。
These three statements let you change the flow of a program by selecting which statements are executed or by executing a set of statements multiple times.
这三种语句通过选择执行哪些语句,或者通过多次执行一组语句,让您可以改变程序流。
Each box contained about 2,000 CARDS, so his program had 4,000 CARDS or 4,000 statements; each card usually contained one COBOL statement line.
每个箱子可装大约2,000张卡片,所以,他的程序有4,000张卡片或者说有4,000个语句;每张卡片一般包含一个cobol语句行。
This program is composed of an arbitrary number of statements which are composed of an arbitrary number of expressions.
这个程序由任意数量的语句构成,语句由任意数量的表达式构成。
If your JDBC program USES prepared statements and parameter markers, queries are processed faster if they are found in the database statement cache.
如果您的JDBC程序使用已经准备好的语句和参数标志,并且如果在数据库语句缓存中找到了它们的话,查询过程将处理地更快。
theorems which are statements about the program inferred from the axioms.
定理(theorems)由公理推论得到的关于程序的陈述。
The handler program will convert the intercepted IO operation to equivalent SQL statements.
这个Handlder程序将把拦截的IO操作转换为对等的sql语句。
When you type them into the Python interpreter (or if you save them in a file and execute them as a Python program), the statements are read starting on the left side and progressing to the right.
当把它们键入Python解释器中(或者将它们保存在一个文件中,并作为一个Python程序来执行)时,读取语句的顺序是从左到右。
Upon arrival, a customer-written program adds the records to a staging table then USES insert statements to add the records to the fact table.
当该文件到来时,用户编写的一个程序将这些记录添加到一个staging表中,然后使用insert语句将这些记录添加到事实表中。
The user would typically expect the statements in the program (if-then-else, repeat, and so on) highlighted differently from the data types (integer, byte) for better readability.
用户通常希望程序中的语句(if - then - else、repeat等)与数据类型(integer、byte等)以不同的方式高亮显示,这样可读性更好。
A printout usually prepared by a language translator which lists the source language statements and contents of a program.
通常由语言翻译程序所准备的打印输出,它列出源语言语句和程序的内容。
Once the program is working, you might want to remove some of the scaffolding or consolidate multiple statements into compound expressions, but only if it does not make the program difficult to read.
程序一旦能工作了,你就应该把一些发挥『脚手架作用』的代码删掉,并且把重复的语句改写成精简版本,但尽量别让程序变得难以阅读。
Procedure and function statements define certain blocks of code as procedures or functions that can then be returned to later in the program.
过程与函数语句将某些代码块定义为以后可在程序中返回的进程或函数。
Creating a new function gives you an opportunity to name a group of statements, which makes your program easier to read and debug.
创建一个新的函数,你就可以把一组语句用一个名字来命名,这样你的程序读起来就清晰多了,后期维护调试也方便。
This led to several statements (none cleanly voted on) that automated testing can be dangerous because it can gives us a falsely warm and fuzzy feeling that the program is not broken.
这种说法导出了一些论述(没有一个被明确赞成),即自动化测试有危险,因为它给我们一种很舒服的错觉,认为程序没有问题。
In the execution of such a program, an input statement can be logically deduced from other statements in the program. Many artificial intelligence programs are written in such languages.
在这样一个程序的执行过程中,一条输入语句可以按照逻辑从程序中的其他语句推断出来。许多人工智能程序使用这种语言编写。
应用推荐