recursive function
常見例句
- Our next example of a recursive function on lists will be a little more complicated.
我們的下一個(gè)基於列表的遞歸函數(shù)示例要稍微複襍一些。 - The program then seeds the recursive function with the first item on the list and the remaining list.
然後程序以列表中的第一項(xiàng)及其餘部分列表爲(wèi)種子開始遞歸函數(shù)。 - You need to do this because your parameter will get clobbered on the recursive function call, and you will need access to it afterwards.
之所以需要這麼做是因爲(wèi)蓡數(shù)會(huì)在遞歸函數(shù)調(diào)用上被截?cái)?,而以後卻還需要訪問(wèn)它。 - This is another way of doing exponentiation, but this one's a recursive function. All right?
但這是一種遞歸的方法對(duì)不對(duì)?,好,讓我們看看這種方法?
麻省理工公開課 - 計(jì)算機(jī)科學(xué)及編程導(dǎo)論課程節(jié)選 返回 recursive function