def age(n): if n==1: # n:编号 return 10 #Age 10:年龄 res = age(n-1) + 2 #我的年龄是我前面(编号-1)的小朋友+2岁 return res ans = age(5) #编号 print(ans)