Commit 28c3273b by BellCodeEditor

save project

parent 48d00db6
Showing with 9 additions and 3 deletions
......@@ -5,5 +5,11 @@ def jiage():
if unit== 'q':
break
else:
total.append(unit)
total()
\ No newline at end of file
try:
unit=int(unit)
except:
print("输入整数")
else:
total.appendu(unit)
jiage()
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