码迷,mamicode.com
首页 > 编程语言 > 详细

think python chapter2

时间:2016-04-10 17:51:27      阅读:162      评论:0      收藏:0      [点我收藏+]

标签:

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. 

 

think python chapter2

标签:

原文地址:http://www.cnblogs.com/zxpo/p/5374637.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!