Commit 41caa132 by BellCodeEditor

save project

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