Commit 5f2612d9 by BellCodeEditor

auto save

parent 3335b43a
...@@ -3,4 +3,4 @@ import func ...@@ -3,4 +3,4 @@ import func
a = func.new_input() a = func.new_input()
b = func.sum(a) b = func.sum(a)
print("你一共获得"+str(b)"分") print("这位选手的总分数:"+str(b))
\ No newline at end of file \ No newline at end of file
...@@ -18,7 +18,7 @@ def sum(money): ...@@ -18,7 +18,7 @@ def sum(money):
for i in money: for i in money:
count=count+i count=count+i
return count return count
price=new_input() #price=new_input()
pay=sum(price) #pay=sum(price)
print(("你一共消费:"+str(pay))) #print(("你一共消费:"+str(pay)))
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