Commit 15d5d122 by BellCodeEditor

save project

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