Commit 660373aa by BellCodeEditor

save project

parent c7526172
...@@ -12,7 +12,7 @@ def new_input(): ...@@ -12,7 +12,7 @@ def new_input():
else: else:
total.append(unit) total.append(unit)
print("-"*30) print("-"*30)
print(total) #print(total)
return total return total
def sum(money): def sum(money):
...@@ -21,6 +21,6 @@ def sum(money): ...@@ -21,6 +21,6 @@ def sum(money):
count+=i count+=i
return count return count
a=new_input() #a=new_input()
money2=sum(a) #money2=sum(a)
print(money2) #print(money2)
\ No newline at end of file \ No newline at end of file
import func
score=func.new_input()
count=func.sum(score)
print("总分是"+str(count))
\ 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