mirror of
https://github.com/jung-geun/PSO.git
synced 2025-12-20 04:50:45 +09:00
12 lines
198 B
Python
12 lines
198 B
Python
# 반복문을 사용해서 자동 생성하는 python 코드
|
|
|
|
|
|
def pibonachi(n):
|
|
if n <= 1:
|
|
return n
|
|
else:
|
|
return pibonachi(n - 1) + pibonachi(n - 2)
|
|
|
|
|
|
print(pibonachi(10))
|