Commit 28c3273b by BellCodeEditor

save project

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