day 8 递归

版本1)  求5!while # 5! = 5*4*3*2*1 # 4!= 4*3*2*1 i = 1 result = 1 while i <= 5: result = result * i i += 1 print(result)   版本2)  5! = 5 * 4! #### 原理 不停的调用函数 函数嵌套 # 5! = 5 * 4! #
相关文章
相关标签/搜索