Commit 0b329f98 by BellCodeEditor

auto save

parent 5c7e35f5
Showing with 0 additions and 25 deletions
def func():
total = []
while True:
try:
unit= int(input("请输入:"))
except:
print("tmd")
else:
if unit==0:
break
else:
total.append(unit)
print(total)
return total
def 计算(马内):
count=0
for i in 马内:
count = count + i
return count
我嘞个骚刚=func()
结果=计算(abc)
print(结果)
\ 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