Commit c96f50c0 by BellCodeEditor

save project

parent de2b947a
Showing with 11 additions and 0 deletions
...@@ -29,3 +29,13 @@ else: ...@@ -29,3 +29,13 @@ else:
print('不可以喝酒') print('不可以喝酒')
print('程序结束~~') print('程序结束~~')
''' '''
money=[]
def sum(money):
count=0
for i in money:
count=count+i
return count
price = [23,56,87,95]
resurt=sum(price)
print(resurt)
\ 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