Commit 55e861b7 by BellCodeEditor

save project

parent 267780d8
Showing with 5 additions and 0 deletions
......@@ -4,5 +4,9 @@ while True:
if unit== 'q':
break
else:
try:
unit=int(unit)
total.append(unit)
except:
print("请输入一个整数")
print(total)
\ 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