Commit e0e5b29a by BellCodeEditor

auto save

parent 05e7d622
Showing with 23 additions and 0 deletions
def fghjkl():
total = []
while True:
unit= input("请输入:")
if unit== 'q':
break
try:
a=int(unit)
except:
print("gfdfghjuhgfghkl")
else:
total.append(unit)
return total
h=fghjkl()
def sum(v):
s=0
for i in v:
s=s+int(i)
print("xxxxxxxxxx")
sum(h)
\ 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