Fundamental ideas:
Three mechanisms of powerful language:
Statements and Expressions:
Expressions:
‘‘‘
value: the amount represented by a letter or synbol 数值 数
computation: an act or the process of calculating sth 计算 计算过程
evaluation: to form an opinion of the amount, value or quality of sth
operator: a symbol or function which represents an operation in mathematics 算子
operand: the number on which an operation is to be done 运算数
‘‘‘
Call expressions:
mul(add(4,mul(4,6)),add(3,5))
Names:
x=2 y=x+1 x=3 print(y)
but the function
def f(a): return a+1 x=2 y= f(x) print(y) x=3 print(y)
because return statement, it get re-revaluated everytime it‘s called
原文:http://www.cnblogs.com/lxjlucoding/p/6395124.html