Commit 06ec7f2a by BellCodeEditor

save project

parent acd7afb1
def abc(): def new():
total = [] total = []
while True: while True:
unit= input("请输入:") unit= input("请输入:")
...@@ -21,6 +21,6 @@ def sum(m): ...@@ -21,6 +21,6 @@ def sum(m):
count=count+1 count=count+1
return count return count
price=abc() price=new()
pay=sum(price) pay=sum(price)
print("一共消费"+str(pay)+"元!") print("一共消费"+str(pay)+"元!")
\ No newline at end of file
import func
date = func.new()
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