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中扩展到多个行的程序语句是如何缩进以改善可读性的。
应用推荐