py函数递归
摘要:1.从前有座山,山中有座庙,庙里有一个老和尚在讲故事... 2.递归:程序调用自身。 3.形式:在函数定义有直接或间接调用自身。 例如:阶乘: n!= 1 x 2 x 3 x ... x n; 从后身前考虑 p(n) = n * (n-1)!, p(n-1) = (n-1)* (n-2)! 4. 初
阅读全文
posted @ 2016-07-04 08:05
posted @ 2016-07-04 08:05
posted @ 2016-06-09 06:58
posted @ 2016-05-26 18:05
posted @ 2016-05-14 07:37
posted @ 2016-05-14 06:38
posted @ 2016-05-14 06:31