Commit 0fd795cd by BellCodeEditor

save project

parent e5129d9f
Showing with 9 additions and 3 deletions
total = []
def sum(kk):
for i in kk:
l=0
l=l+i
return l
def sb():
total = []
while True:
unit= input("请输入:")
if unit== 'q':
......@@ -11,4 +16,5 @@ def sb():
print("请输入数字")
else:
total.append(unit)
print(total)
\ No newline at end of file
print(total)
return total
\ 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