Skip to content

Commit b1d407d

Browse files
committed
update code
1 parent 782ccaf commit b1d407d

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

Homework/AlainOUYANG/.vscode/settings.json

-5
This file was deleted.

Homework/AlainOUYANG/lz_episode_01/fibonacci.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
@Author: AlainOUYANG
66
@Date: 2019-10-16 16:52:17
77
@LastEditors: AlainOUYANG
8-
@LastEditTime: 2019-10-17 20:07:46
8+
@LastEditTime: 2019-10-17 20:25:34
99
@Description: fibonacci
1010
'''
1111

@@ -17,14 +17,17 @@ def fibonacci_item(n):
1717
else:
1818
return fibonacci_item(n - 1) + fibonacci_item(n - 2)
1919

20+
2021
def fibonacci_list(n):
2122
lst = []
2223
for i in range(1, n+1):
2324
lst.append(fibonacci_item(i))
2425
return lst
2526

27+
2628
def main():
2729
print(fibonacci_list(20))
2830

31+
2932
if __name__ == "__main__":
3033
main()

Homework/AlainOUYANG/lz_episode_01/prime.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@
55
@Author: AlainOUYANG
66
@Date: 2019-10-16 16:45:49
77
@LastEditors: AlainOUYANG
8-
@LastEditTime: 2019-10-17 20:01:29
8+
@LastEditTime: 2019-10-17 20:26:04
99
@Description: get_prime
1010
'''
11+
1112
from math import sqrt
1213

1314

@@ -19,5 +20,6 @@ def main():
1920
for each in get_prime(20):
2021
print(each)
2122

23+
2224
if __name__ == "__main__":
2325
main()

0 commit comments

Comments
 (0)