首页 > 编程语言 > 详细

think python chapter2

时间:2016-04-10 17:49:26      阅读:213      评论: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
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!