Commit 6d5c83f0 by BellCodeEditor

save project

parent 05e7d622
import func
print(str(func.g)+"分")
\ No newline at end of file
def s():
total = []
while True:
unit= input("请输入:")
if unit== 'q':
break
else:
total.append(unit)
print(total)
return total
def sun(m):
k=0
for i in m:
i=int(i)
k=k+i
return k
j=s()
g=sun(j)
#print(g)
\ 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