Commit 41caa132 by BellCodeEditor

save project

parent 62793338
Showing with 6 additions and 7 deletions
dict_hero={'侯三':10,'后裔':21,'后于':21}
print(dict_hero)
print (dict_hero['侯三'])
dict_hero['后裔']=100
print(dict_hero)
dict_hero['小李']=80
print(dict_hero)
\ No newline at end of file
a=input('你要什么?')
if a in dict_hero:
print('你点的'+a+'须要'+str(dict_hero[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