Commit 486e3d1a by BellCodeEditor

save project

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