Commit 9cde7c2f by BellCodeEditor

save project

parent 845a1cde
Showing with 8 additions and 5 deletions
...@@ -11,10 +11,13 @@ def mnm(): ...@@ -11,10 +11,13 @@ def mnm():
print('需要输入整数哦') print('需要输入整数哦')
else: else:
total.append(unit) total.append(unit)
j=0
for i in total: return total
j=j+i def n(total):
j=0
for i in total:
j=j+i
return j return j
money = mnm() money = mnm()
print(money) y=n(money)
print(y)
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