Commit 743fbf2a by BellCodeEditor

save project

parent 74923145
Showing with 11 additions and 2 deletions
...@@ -7,6 +7,16 @@ while True: ...@@ -7,6 +7,16 @@ while True:
else: else:
a = int(unit) a = int(unit)
total.append(a) total.append(a)
except: except:
print("请输入整数") print("请输入整数")
print(total) def a(t):
\ No newline at end of file b=0
for i in t:
b=b+i
return b
c=a(total)
print(c)
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