Commit 6a762c78 by BellCodeEditor

auto save

parent ffa62063
Showing with 11 additions and 4 deletions
...@@ -5,6 +5,14 @@ def ze(): ...@@ -5,6 +5,14 @@ def ze():
if unit== 'q': if unit== 'q':
break break
else: else:
total.append(unit) try:
print(total) unit=int(unit)
ze() except:
\ No newline at end of file print("请输入数字")
else:
total.append(unit)
finally:
print("-"*30)
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