Commit f4218a43 by BellCodeEditor

save project

parent 4030155c
Showing with 23 additions and 2 deletions
def new_input():
\ No newline at end of file
to = []
while True:
un = input("请输入(q退出):")
if un == 'q':
break
else:
try:
un = int(un)
except:
print("请重新输入一个数字")
else:
to.append(un)
finally:
print("==================================================")
return to
def sum(money):
co = 0
for i in money:
co = co + i
return co
\ 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