Commit ef29a870 by BellCodeEditor

save project

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