Commit d7a6b49f by BellCodeEditor

save project

parent 50742aae
Showing with 16 additions and 0 deletions
c={'wang':5.2,'shan':12.9,'xiang':2.4,'li':15}
c={'wang':5.2,'shan':12.9,'xiang':2.4,'li':15}
k=input('名儿')
y=input('价儿')
if k in c:
if float(y)<c[k]:
c[k]=float(y)
print(k+'卖'+y)
else:
print('不买了')
else:
c[k]=float(y)
print(k+'yuan'+y+'滚')
\ 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