Commit 448ad3c4 by BellCodeEditor

save project

parent c6594759
Showing with 8 additions and 8 deletions
...@@ -3,21 +3,21 @@ def command(): ...@@ -3,21 +3,21 @@ def command():
total = [] total = []
while True: while True:
print('-'*70) print('-'*70)
try: unit= input("请输入:")
unit=(input("请输入:")) if unit== 'q':
break
else:
right=int(unit)
print('-'*70) print('-'*70)
total.append(unit) total.append(unit)
print('='*70) print('='*70)
print(total) print(total)
print('='*70) print('='*70)
if unit==0:
return total
except: except:
print('!'*70) print('!'*70)
print('are you SB?!') print('are you SB?!')
print('!'*70) print('!'*70)
return right
command() command()
money=0
for i in total:
money=i+money
print(money)
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