Commit db121949 by BellCodeEditor

auto save

parent 170ff241
Showing with 25 additions and 0 deletions
jinbi=int(input("要发多少金币:"))
total=0
for i in range(1,jinbi+1):
total+=i
print(total)
\ No newline at end of file
houzi=int(input("请输入猴子的数量:"))
list=[]
count=0
for i in range(1,houzi+1):
list.append(i)
while True:
if len(list)==1:
break
else:
temp=list[0]
list.pop(0)
count+=1
if count==3:
count=0
continue
else:
list.append(temp)
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