2013年2月18日

(python learn) 3 -- operator && expression

摘要: Basically, there are four kinds of operator.assignment operator -- like =, a=1 asing a with the value 1arithmetic operator -- like +,-,*,/ 8/4=4relational operator -- like >,<,==. The 2>1 will return truelogical operator -- like "and" "or" " not "assignment ope 阅读全文

posted @ 2013-02-18 17:51 kramer 阅读(234) 评论(0) 推荐(0) 编辑

(python learn) 2 -- variable

摘要: The variablepython can be writen with number, underline, and characters. The number can not be in the first position of the variable name.In python, the variable is like a pointer pointing to a memory area where holding the value. It is not like the variable in c/c++. In c/c++ the variable is an mem 阅读全文

posted @ 2013-02-18 15:49 kramer 阅读(242) 评论(0) 推荐(0) 编辑

(python learn) 1 -- python environment

摘要: By default linux have python installed. There are two kind of enviroment in python. One is interactive enviroment. Like shell. The other one is file enviroment. Like other programming languages, you put the code in a file and run it.The interactive environmentinput python you will get into the pytho 阅读全文

posted @ 2013-02-18 11:31 kramer 阅读(292) 评论(0) 推荐(0) 编辑

导航