Commit 9629d62a by BellCodeEditor

auto save

parent 05e7d622
import func
aa=func.aaa()
cc=func.sam(aa)
print(cc)
\ No newline at end of file
total = []
def aaa():
while True:
unit= input("请输入:")
if unit== 'q':
break
else:
try :
int(aaa)
except:
total.append(unit)
return total
def sam(bbb):
ccc=0
for i in bbb:
ccc+=int(i)
return ccc
#print(ccc)
\ 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