Commit 6a762c78 by BellCodeEditor

auto save

parent ffa62063
Showing with 10 additions and 3 deletions
...@@ -5,6 +5,14 @@ def ze(): ...@@ -5,6 +5,14 @@ def ze():
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:
ze() print("-"*30)
\ No newline at end of file return total
a=ze()
print(a)
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