Commit 105455a8 by BellCodeEditor

save project

parent 8c0d0674
...@@ -14,4 +14,13 @@ def new_input(): ...@@ -14,4 +14,13 @@ def new_input():
finally: finally:
print('=====================') print('=====================')
return total return total
def sum(money): def sum(money):
\ No newline at end of file count=0
for i in money:
count=count+i
return count
price=new_input()
pay=sum(price)
print("你一共需要支付"+str(pay)+"元和手续费1亿元")
\ No newline at end of file
import diy
data=diy.new_input()
score=diy.sum(data)
print('这位选手的总分为+str(score)+'')
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