您的位置:首页 > 编程语言 > Python开发

think python chapter2

2016-04-10 17:21 501 查看
1、An assignment statement creates a new variable and gives it a value:

Variable names can be as long as you like. They can contain both letters and numbers, but they can’t begin with a number. It is legal to use uppercase letters, but it is conventional to use only lower case for variables names.

The underscore character, , can appear in a name. It is often used in names with multiple words。

2、An expression is a combination of values, variables, and operators. A value all by itself is considered an expression

3、A statement is a unit of code that has an effect, like creating a variable or displaying a value.

When you type a statement, the interpreter executes it, which means that it does whatever the statement says. In general, statements don’t have values.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: