Commit f9b2a4f4 by BellCodeEditor

auto save

parent 8c902939
Showing with 10 additions and 2 deletions
dict_hero={'猴三':10,'猴一':21,'猴五':22,'猴队':29,'猴七':30}
dict_hero['猴五']=100
dict_hero['猴王']=300
print(dict_hero)
print(dict_hero['猴七'])
\ No newline at end of file
store={'可乐':10,'西瓜汁':10,'饼干':20,'冰棍':10,'烤肉':30,}
a=input('你要买什么')
if a in store:
print('你要买的'+a+'是'+str(store[a])+'元')
else:
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