Commit 84d036c3 by BellCodeEditor

save project

parent 8a75bc10
Showing with 14 additions and 2 deletions
import caidan
data=func.new_input()
score=func.sum(data)
print("总分"+str(score))
\ No newline at end of file
...@@ -15,4 +15,12 @@ def nidie(): ...@@ -15,4 +15,12 @@ def nidie():
print("-"*30) print("-"*30)
print(total) print(total)
return total return total
nidie() def num(qian):
\ No newline at end of file ds=0
for i in qian:
ds+=i
return ds
price=nidie()
pay=num(price)
print("你共消费"+str(pay)+"元,")
nidie()
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