Commit 448ad3c4 by BellCodeEditor

save project

parent c6594759
Showing with 16 additions and 16 deletions
...@@ -2,22 +2,22 @@ ...@@ -2,22 +2,22 @@
def command(): def command():
total = [] total = []
while True: while True:
print('-'*70)
try:
unit=(input("请输入:"))
print('-'*70) print('-'*70)
total.append(unit) unit= input("请输入:")
print('='*70) if unit== 'q':
print(total) break
print('='*70) else:
if unit==0: right=int(unit)
return total print('-'*70)
total.append(unit)
print('='*70)
print(total)
print('='*70)
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