Commit 4b6e8d98 by BellCodeEditor

save project

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