Commit 40348e9d by BellCodeEditor

save project

parent 05e7d622
import func
a=func.who()
b=func.can(a)
print(b)
\ No newline at end of file
def who():
total = []
while True:
unit= input("请输入:")
try:
unit=int(unit)
except:
if unit== 'q':
break
else:
total.append(unit)
return total
# list1=who()
# print(list1)
def can(shu):
see=0
for i in shu:
see=see+i
return see
# list2=can(list1)
# print(list2)
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