def jiechenghe(n):
if n == 1:
return 1
elif n == 2:
return 3
return jiechenghe(n-1) + n * (jiechenghe(n-1)-jiechenghe(n-2))
print(jiechenghe(1))
print(jiechenghe(2))
print(jiechenghe(3))
``
版权声明:本文为qq_42795565原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。