Commit 1e136db7 by BellCodeEditor

save project

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