Commit 7e05739e by BellCodeEditor

save project

parent 683878a6
Showing with 8 additions and 6 deletions
def new_input():
total = []
while True:
......@@ -6,10 +5,12 @@ def new_input():
if unit=='q':
break
else:
total.append(unit)
try:
new_input()
except:
try:
unit=int(unit)
except:
print('请输入数字')
else:
else:
total.append(unit)
print('_'*30)
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