Commit b85dd8a4 by BellCodeEditor

save project

parent 05e7d622
import icu
我嘞个骚刚=icu.func()
结果=icu.计算(conut)
print(结果)
\ No newline at end of file
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
\ 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