Commit fb7a759d by BellCodeEditor

save project

parent c2f924a5
Showing with 19 additions and 1 deletions
#price=[15,18,14,25]
#a=0
#for i in price:
# a+=i
#print(a)
def hello(name):
content="你好!"+name
return content
result=hello("李宸阳")
hello("李宸阳")
\ No newline at end of file
......@@ -12,4 +12,10 @@ def abc():
print("-"*30)
return total
a=abc()
print(a)
def abcd(n):
b=0
for i in n:
b+=i
return b
c=abcd(a)
print("您一共消费:"+str(c)+"元,请付款,不然去警察局!")
\ 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