Commit c96f50c0 by BellCodeEditor

save project

parent de2b947a
Showing with 12 additions and 2 deletions
...@@ -28,4 +28,14 @@ else: ...@@ -28,4 +28,14 @@ else:
if age < 18: if age < 18:
print('不可以喝酒') print('不可以喝酒')
print('程序结束~~') print('程序结束~~')
''' '''
\ No newline at end of file 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