Commit f53a9ad6 by BellCodeEditor

auto save

parent 2502fcb6
Showing with 10 additions and 4 deletions
......@@ -6,11 +6,17 @@ def kk():
break
else:
try:
num=int(num)
num=float(num)
except:
print("输入错误!")
else:
t.append(num)
return t
a=kk()
print(a)
\ No newline at end of file
def sum(a):
qh=0
for i in a:
qh=qh+i
return qh
b=kk()
p=sum(b)
print(p)
\ 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