Commit 7bb56bc1 by BellCodeEditor

save project

parent 17f2c4a6
Showing with 9 additions and 2 deletions
...@@ -25,4 +25,11 @@ def sum(money) ...@@ -25,4 +25,11 @@ def sum(money)
price = new_input() price = new_input()
pay = sum(price) pay = sum(price)
print("消费了" + str(pay) + "yuan") print("消费了" + str(pay) + "yuan")
\ 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