Commit cab78ae3 by BellCodeEditor

save project

parent 0dff5e06
Showing with 9 additions and 2 deletions
...@@ -8,9 +8,15 @@ def func(): ...@@ -8,9 +8,15 @@ def func():
else: else:
if unit== 'q': if unit== 'q':
break break
else: else:/
total.append(unit) total.append(unit)
print(total) print(total)
return return total
def jisuan(total):
count = 0
for i in total:
count = count + i
return count
abc=func() abc=func()
jiage = jisuan(abc)
print(abc) print(abc)
\ 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