Commit a3ca65c4 by BellCodeEditor

save project

parent 6a980f48
Showing with 10 additions and 0 deletions
st={"iphone":5999,"iPad":4999}
name=input("请输入名称")
suoiu=float(input("请输入价格"))
if name in st:
if st(name)<suoiu:
print("已替换,顾客不买")
elif st(name)==suoiu:
print("顾客不买")
else:
print("顾客来了")
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