递归是自己调用自己
迭代是根据已知值一个个推算出未知值
#递归 def f(i): if i <= 10: return i + f(i+1) else: return 0 #迭代 s = 0 def f(): for i in range(3): s += i print s