摘要: #闭包,函数嵌套函数时,返回值用的是内层函数 '''def f1(m): def2(n): return m*n return f2''''''#阶乘def factorial(n): if n==1: return 1 else: return factorial(n-1)*n print(fac 阅读全文
posted @ 2017-04-19 22:35 kindnull 阅读(266) 评论(0) 推荐(0) 编辑