Commit 02adf29c by BellCodeEditor

save project

parent bfb39fb9
Showing with 11 additions and 0 deletions
def sum_number(num):
#递归的出口
if num == 1:
return 1
#数字的累加
temp = sum_number(num-1)
return num+temp
result = sum_number(100)
print(result)
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment