Commit 486e3d1a by BellCodeEditor

save project

parent 087ec4a9
Showing with 17 additions and 8 deletions
def new_input():
total = []
def jisuan():
while True:
unit = inpit('请输入(q退出):')
if unit == 'q':
total = []
number= inpit('请输入(q退出):')
if number == 'q':
break
else:
total.append(unit)
print(total)
new_input()
\ No newline at end of file
try:
money = int(number)
except:
print("请输入一个数字")
else:
total.append(number)
finally:
print("_"*3 )
return total
rsult = new_input()
print((result))
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