Commit 15d5d122 by BellCodeEditor

save project

parent 0f00a1e2
Showing with 16 additions and 13 deletions
SVB=[] def new():
while True: total=[]
SB = input("输入吧:") while True:
if SB == 'q': money = input("输入吧:")
break if money == 'q':
else: break
try:
SB=int(SB)
except:
print("输数字")
else: else:
SVB.append(SB) try:
print(SVB) money=int(money)
\ No newline at end of file except:
print("输数字")
else:
total.append(money)
return total
result=new()
print(result)
\ 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