Commit 59199e42 by BellCodeEditor

save project

parent 1cbf5e11
Showing with 3 additions and 3 deletions
# 神奇百货中的物品已经帮你创建好啦,接下来要看你的了~ # 神奇百货中的物品已经帮你创建好啦,接下来要看你的了~
dict= {'英菲尼迪Q50L':112,'奔驰S600':249,'奥迪R8':265,'法拉利488':536,'保时捷718':198} dict= {'英菲尼迪Q50L':112,'奔驰S600':249,'奥迪R8':265,'法拉利488':536,'保时捷718':198,'阿斯顿马丁one77':8769}
k=input("你要买什么:") k=input("你要买什么:")
if k in dict: if k in dict:
print() print(str(dict[k])+"万元")
else: else:
print(k+缺货) print(k+"缺货")
......
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