Commit eb6245a6 by BellCodeEditor

auto save

parent 570259a4
Showing with 9 additions and 6 deletions
......@@ -4,12 +4,15 @@ def new_input():
unit= input("请输入:")
if unit== 'q':
break
try:
else:
total.append(unit)
try:
unit = int(unit)
except:
print("输入错误,请输入数值!")
print(total)
else:
total.append(unit)
finally:
print("*"*20)
return total
rezult = new_input()
\ No newline at end of file
result = new_input()
print(result)
\ 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