Commit 58000017 by BellCodeEditor

auto save

parent 7c6575fb
Showing with 6 additions and 2 deletions
...@@ -14,4 +14,8 @@ print(list_hero) ...@@ -14,4 +14,8 @@ print(list_hero)
dict_hero= {'赵一':30,'丁二':37,'孙五':52,'王猛':89,'周亮':98} dict_hero= {'赵一':30,'丁二':37,'孙五':52,'王猛':89,'周亮':98}
print(dict_hero) print(dict_hero)
dict_hero['王五']=60 dict_hero['王五']=60
print(dict_hero) print(dict_hero)
\ No newline at end of file if '赵一' in dict_hero:
print("Y")
else:
print("N")
\ 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