Commit 6e1997e7 by BellCodeEditor

auto save

parent 87be3438
Showing with 11 additions and 0 deletions
# dict={"后裔":10,"钟馗":15,"元歌":20,"蔡文姬":18}
# dict["蔡文姬"]=28
# dict["xxx"]=30
# print(dict)
dict={"后裔":10,"钟馗":15,"元歌":20,"蔡文姬":18}
k=input("你选择什么角色")
if k in dict:
print("角色为"+k+"他的生命值为"+str(dict[k]))
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