Skip to content

Commit

Permalink
斐波那契数列
Browse files Browse the repository at this point in the history
  • Loading branch information
swaynew authored Jul 22, 2019
1 parent c515806 commit bcb905b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
Binary file added Homework/Duduanwangu/lz_episode_01/feibo.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions Homework/Duduanwangu/lz_episode_01/feibo.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# ì³²¨ÄÇÆõÊýÁÐ
def feibo(n):
a = 1
b = 1
while a < n:
print(a, end=" ")
a, b = b, a + b

feibo(100)

0 comments on commit bcb905b

Please sign in to comment.