Commit 4b6e8d98 by BellCodeEditor

save project

parent 7ffd8dce
Showing with 5 additions and 5 deletions
......@@ -2,7 +2,7 @@ def new_input():
total = []
while True:
unit = input('请输入(q退出):')
if money == 'q':
if unit == 'q':
break
else:
try:
......@@ -10,6 +10,6 @@ def new_input():
except:
print('请输入数字')
else:
total.append(unit)
re = new_input()
print(result)
\ No newline at end of file
total.append(unit)
print(total)
new_input
\ 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