Commit 4f6df011 by BellCodeEditor

save project

parent df002697
Showing with 15 additions and 0 deletions
def hello(name):
content= "你好!" + name
return content
result=hello("小姨")
print(result)
\ No newline at end of file
......@@ -15,3 +15,11 @@ def food():
return total
total = food()
print(total)
def sum(d):
cont = 0
for i in d:
cont = cont + i
return cont
nice = food()
hi = sum(nice)
print("您一共消费了" + str(hi) + "元!扫码还是现金呢?")
\ 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