Commit cdeabca0 by BellCodeEditor

save project

parent 8f6c281b
Showing with 7 additions and 6 deletions
# 直接运行以下代码,说说你的发现: dict={'猴三':10,'猴一':21,'猴五':22,'猴队长':29,'猴七':30}
list_hero=['赵一',30,'丁二',37,'孙五',52,'王猛',89,'周亮',98] k=input('你想买什么呀?')
dict_hero = {'赵一':30,'丁二':37,'孙五':52,'王猛':89,'周亮':98} if k in dict:
print(len(list_hero)) print('叮咚~您的'+k+'需要支付'+str(dict[k])+'元~')
print(len(dict_hero)) else:
\ No newline at end of file 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