所以我们递归处理列表其余部分,并再次尝试。
此外,我们必须递归处理MySQL结果,删除非法字符以及逐位构建我们的XML文档。
In addition, we have to work through our MySQL results recursively, removing illegal characters and building our XML document bit by bit.
当然,列表的强大力量部分来自于递归处理列表元素的能力,这表示可以从列表提取头部,直到列表为空,然后累积结果。
Of course, part of the power of lists comes in recursive processing of the list elements, which simply means pulling the head from the list until the list is empty, then accumulating the results.
But I want to stress again, as long as I do the base case right and my inductive or recursive step reduces it to a smaller version of the same problem, the code will in fact converge and give me out an answer.
就开心的去做吧,但是我想再次强调,只要基础事件处理正确而我的递归,或递推步骤能把它简化为更简单的同类问题,那么这段代码就可以收敛。
应用推荐