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! #
相關文章
相關標籤/搜索