Commit ba79f7e2 by BellCodeEditor

save project

parent dc70412a
Showing with 26 additions and 0 deletions
def jsj():
jiage = []
while True:
danjia = input("偶")
if danjia == 'p':
break
else:
try:
danjia=int(danjia)
except:
print("XXX")
else:
jiage.append(danjia)
return jiage
a=jsj()
print(a)
def s(asdf):
c=0
for i in asdf:
c=c+i
return c
ref = s(a)
print(ref)
\ 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