Commit fcd4fdff by BellCodeEditor

save project

parent 968103b4
Showing with 5 additions and 1 deletions
...@@ -10,7 +10,10 @@ def foods(): ...@@ -10,7 +10,10 @@ def foods():
print("错误") print("错误")
else: else:
total.append(unit) total.append(unit)
return total count = 0
for i in total:
count += i
return count
total = foods() total = foods()
print(total) print(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