def compute(n): if (n == 0 or n ==1): return n return compute(n-1) + compute(n-2) n = eval(input()) for i in range(0, n): f = compute(i) print(f, end=' ')
Category: Python
全新的繁體中文 WordPress 網站
def compute(n): if (n == 0 or n ==1): return n return compute(n-1) + compute(n-2) n = eval(input()) for i in range(0, n): f = compute(i) print(f, end=' ')