Commit 3c95aac7 by BellCodeEditor

save project

parent a50774b8
Showing with 15 additions and 0 deletions
score={}
k=
\ No newline at end of file
score={'苹果':3,'香蕉':5,'梨':4}
k=input("水果")
v=input("价钱")
if k in score:
if int(v)<score[k]:
print("水果降价")
else:
print("买水果")
else:
score[k]=int(v)
print("上架了")
\ No newline at end of file
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