Commit 743fbf2a by BellCodeEditor

save project

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