Commit c41b051c by BellCodeEditor

auto save

parent a55fad25
Showing with 6 additions and 2 deletions
...@@ -6,7 +6,10 @@ def new_intput(): ...@@ -6,7 +6,10 @@ def new_intput():
break break
else: else:
try: try:
unit2 = int(unit)
total.append(unit) except:
print("请输入数字")
else:
total.append(unit2)
print(total) print(total)
new_intput() new_intput()
\ 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