Commit c04537ed by BellCodeEditor

save project

parent 4517bae9
Showing with 12 additions and 8 deletions
def new_input():
total = [1]
while True:
unit=input("请输入:(Q提出)")
if unit == 'q':
money=input("请输入:(Q提出)")
if money == 'q':
break
else:
try:
unit = int(unit)
money = int(money)
except:
print("小明问没问")
else:
total.append(unit)
print("-"*30)
print(total)
total.append(money)
finally:
new_input()
\ No newline at end of file
print("-"*30)
return total
resuit=new_input()
print(resuit)
\ 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