Commit 8f15ffa6 by BellCodeEditor

save project

parent 05e7d622
def man():
total = []
while True:
unit= input("请输入:")
try:
unit=int(unit)
except:
if unit== 'q':
break
else:
total.append(unit)
print(total)
return total
# list1=man()
def sum(jkl):
count=0
for i in jkl:
count=count+i
return count
# gu=sum(list1)
# print(gu)
import func
a=func.man()
b=func.sum(a)
print(b)
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