Commit f7468b05 by BellCodeEditor

save project

parent ba97b3a3
Showing with 14 additions and 0 deletions
dict={"可乐":3,"牛奶":1}
j=input("买什?")
if j in dict:
print("您选物品"+j+"价为"+str(dict[j])+"元")
else:
print("您选物品"+j+"缺货")
\ No newline at end of file
score={"小王":82,"小美":100,"小民":78}
k=input("请输入人名")
v=input("请输入新成")
if k in score:
if int(v)<score[k]:
score[k]=int(v)
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