Commit 63af2c1e by BellCodeEditor

auto save

parent 38581970
Showing with 13 additions and 0 deletions
dict_cost={'pingguo':5,'shangzhu':12,'xiangjiao':2,'lizhi':15,'putao':9,'lizi':8}
a=input('suiguo')
b=input("jiage")
if a in dict_cost:
if dict_cost[a]<int(b):
print("zhangjiale")
else:
dict_cost[a]=int(b)
print("jiangjiale"+str(dict_cost[a])+"yuan")
else:
dict_cost[a]=int(b)
\ 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