Commit a3fad2e0 by BellCodeEditor

save project

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