Commit 6fb36c38 by BellCodeEditor

save project

parent 3da71791
...@@ -14,8 +14,8 @@ def new_input(): ...@@ -14,8 +14,8 @@ def new_input():
finally: finally:
print("-"*30) print("-"*30)
return total return total
b = new_input() #b = new_input()
print(b)
def sum(money): def sum(money):
count = 0 count = 0
...@@ -24,6 +24,6 @@ def sum(money): ...@@ -24,6 +24,6 @@ def sum(money):
return count return count
b = new_input()
c = sum(b) #c = sum(b)
print("您一共消费" + str(c) + "元!扫码还是现金") #print("您一共消费" + str(c) + "元!扫码还是现金")
\ No newline at end of file \ No newline at end of file
import func
data = func.new_input()
score = func.sum(data)
print("这位选手的总分为:"+str(score))
\ 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