Commit 01e03308 by BellCodeEditor

save project

parent b4de6537
Showing with 2 additions and 2 deletions
...@@ -11,11 +11,11 @@ ...@@ -11,11 +11,11 @@
def get_money(): def get_money():
wallet=[] wallet=[]
while True: while True:
money=input("输入价格") money=input("输入价格(q是退出)")
if money=="q": if money=="q":
print("已退出") print("已退出")
break break
wallet.append(money) wallet.append(money)
print("当前钱包内有"+str(","join(wallet))) print("当前钱包内有"+str(",".join(wallet)))
print("当前钱包内有"+str(",".join(wallet))) print("当前钱包内有"+str(",".join(wallet)))
get_money() get_money()
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