Commit 2f471454 by BellCodeEditor

auto save

parent fcbe0259
Showing with 11 additions and 1 deletions
...@@ -8,6 +8,16 @@ def new_imput(): ...@@ -8,6 +8,16 @@ def new_imput():
if unit== 'q': if unit== 'q':
break break
else: else:
try :
unit= int(unit)
except:
print("输入数字")
else:
total.append(unit) total.append(unit)
print(total) finally:
print("-"*30)
return total
result=new_imput()
print(result)
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