Commit 9de9d02f by BellCodeEditor

save project

parent 2067dddd
...@@ -14,13 +14,13 @@ def new_input(): ...@@ -14,13 +14,13 @@ def new_input():
print("没有错误") print("没有错误")
total.append(unit) total.append(unit)
return total return total
m = new_input() # m = new_input()
print(m) # print(m)
def sum(money): def sum(money):
count = 0 count = 0
for i in money: for i in money:
count+=i count+=i
return count return count
pay = sum(m) # pay = sum(m)
print(pay) # print(pay)
\ No newline at end of file
import func
a = func.new_input()
b = func.sum(a)
print(b)
\ 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