Commit c61ae778 by BellCodeEditor

save project

parent 93fe08f7
Showing with 10 additions and 12 deletions
def new_input:
total = []
if unit== 'q':
break
while True:
unit= input("请输入:")
unit=int(unit)
if unit== 'q':
break
else:
try:
unit=int(unit)
except expression :
except:
print("请输整数")
else:
total.append(unit)
if unit== 'q':
break
print(total)
\ No newline at end of file
return total
def sum(money):
count=0
for i in money:
count+=i
return count
\ 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