And that's follow-- so this is, let me say this is a keyword-- that is followed immediately by a name.
接下来就是关键词,紧跟着名字的是一个等式-,在这个例子中。
And then notice the structure, WHILE I got a keyword WHILE, there's that color identifying it, and in parentheses I have a test.
然后注意这个结构,有一个关键词,颜色就可以区分出它了,然后括号内是个测试。
So a loop or an infinite loop, because true is always true, there is no-- nothing on the screen that seems to change this keyword true, so this is actually a deliberate infinite loop, but so was that thing up top to forever say hi or whatever it is you wanted to do.
因此而出现死循环,屏幕上的这些语句无论怎么运行,都无法改变它为真的事实,这就是所谓的死循环,无论你想不想要,屏幕上都会不断打印出“hi“
def First of all, we have a keyword. def.
首先我们有一个关键词。
This is a keyword to Python that says, when it reads this in the file, it says, I'm creating a definition.
这是Python语言的关键词,当你在文件中读到这个词的时候,它的意思就是我正在创建一个定义。
There's a keyword, which I'm going to highlight right up here, print, which is in, I don't know what that color is, orange?
这里有个,我要高亮显示的,包含print的关键词,我不知道这是什么颜色,橙色么?
First of all, IF is a keyword. which makes sense.
首先,IF是个关键词。
This define keyword is something we'll see later on.
这个define关键词,我们稍后会讲到。
So return is another keyword.
找到它--我们得到了这些return命令。
应用推荐