Commit 5578b1d3 by BellCodeEditor

auto save

parent 3c7c98e6
Showing with 699 additions and 0 deletions
n1=1
n2=1
nm=0
num=0
list_me=[]
list_me.insert(0,n1)
list_me.insert(1,n2)
dek=2
n=int(input('输入一个数字:'))
if not (n<0 or n==0):
if n>2:
for i in range(n-2):
nm=n1+n2
n1=n2
n2=nm
list_me.insert(dek,nm)
dek+=1
print(list_me)
for i in list_me:
num+=i
print(num)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment