Write a recursive function DigitSum(n), enter a non-negative integer, and return the sum of the numbers that make up it. For example, if you call DigitSum(1729), it should return 1 + 7 + 2 + 9, and its sum is 19.
NoSuchKey
Guess you like
Origin blog.csdn.net/lxp_mujinhuakai/article/details/54411703
Recommended
Ranking