Python递归题目【多测师_王sir】

阅读 138

2022-10-26

def f(x):
if x == 0 or x == 1:
return x
else:
x = f(x-2)-f(x-1)
return x

print

 



相关推荐

精彩评论(0)

0 0 举报