A Matter of Interpretation

来源:互联网 发布:mac office快捷键大全 编辑:程序博客网 时间:2024/04/30 06:37
A Matter of Interpretation

In the introduction to this unit, we mentioned that Python is an interpreted language(解释执行语言) (meaning it runs using an interpreter). 

For now, think of the interpreter as a program that takes the code you write, checks it for syntax errors, and executes the statements in that code, line by line. It works as a go-between for you and the computer and lets you know the result of your instructions to the machine.

Tell Python to assign the value Trueto the variable spam and False to the variable eggs.

Hint

Remember, you assign values with the= sign, like so:

example_variable = True