Commit 37d76d6a by BellCodeEditor

save project

parent 8d4fe540
Showing with 23 additions and 0 deletions
sb={"苹果":30,"梨子":20,"西瓜":50}
k=input("水果")
v=input("价格")
if k in sb:
if int(v)>score(k):
score(k)=int(v)
print()
\ No newline at end of file
sb={"苹果":30,"梨子":20,"西瓜":50}
k=input("水果")
v=input("价格")
if k in sb:
if int(v)>sb[k]:
sb[k]=int(v)
print("涨价了,不买")
else:
print("降价了")
else:
d=int(v)
sb[k]=d
print("水果上传了")
print(sb)
\ 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