Commit 65bdeae7 by BellCodeEditor

save project

parent d883dc75
Showing with 12 additions and 7 deletions
def yuyubb(): def yuyubb():
toled=[] total=[]
while True: while True:
yu=input("亲,请输入价格~") yu=input("亲,请输入价格~")
if yu=='q': if yu=='q':
...@@ -13,5 +13,11 @@ def yuyubb(): ...@@ -13,5 +13,11 @@ def yuyubb():
toled.append(yu) toled.append(yu)
finally: finally:
print("-"*30) print("-"*30)
print(toled) print(total)
yuyubb() def Sum(money):
\ No newline at end of file count=0
for i in money:
count+=i
return count
total
sum(total)
\ No newline at end of file
s{"a",1:"C",2:"k",3} asd=open(C\Users\Administrator\Desktop)
for k,v in s.items(): \ No newline at end of file
while True:
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