Commit 5720fb2a by BellCodeEditor

save project

parent 06e48372
Showing with 5 additions and 2 deletions
...@@ -20,5 +20,8 @@ dict_hero['师傅'] = '唐僧' ...@@ -20,5 +20,8 @@ dict_hero['师傅'] = '唐僧'
dict_hero['大师兄'] = '孙悟空' dict_hero['大师兄'] = '孙悟空'
dict_hero['二师兄'] = '猪悟能' dict_hero['二师兄'] = '猪悟能'
dict_hero['沙师弟'] = '沙悟净' dict_hero['沙师弟'] = '沙悟净'
if '沙师弟' in dict_hero: a = input("找谁")
print(dict_hero['沙师弟']) if a in dict_hero:
print(dict_hero[a])
else:
print("不在")
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