Commit 1e136db7 by BellCodeEditor

save project

parent e7502c0a
Showing with 7 additions and 4 deletions
...@@ -6,20 +6,23 @@ def zw(): ...@@ -6,20 +6,23 @@ def zw():
break break
else: else:
try: try:
int(unit) unit=int(unit)
except : except :
print("错") print("错")
else: else:
total.append(unit) total.append(unit)
return total return total
q=zw() q=zw()
e=wo(q) print(q)
e=sum(q)
print(e) print(e)
def wo(ww): def sum(ww):
c=0 c=0
for i in ww: for i in ww:
c=c+i c=c+int(i)
return c return 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