Commit 7592eead by BellCodeEditor

auto save

parent bcf2b24a
Showing with 26 additions and 0 deletions
tianshu=int(input("天数:"))
num=0
for i in range(1,tianshu+1):
num+=i
print(num)
\ No newline at end of file
a=int(input(":"))
list=[]
b=0
c=0
for i in range(1,a+1):
list.append(i)
while True:
if len(list)==1:
break
else:
b+=1
c=list[0]
list.pop(0)
if b==3:
b=0
continue
else:
list.append(c)
print(list)
\ No newline at end of file
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