Commit 7a62adbf by BellCodeEditor

auto save

parent f51823f8
Showing with 11 additions and 2 deletions
dict_list={"薯片":4,"薯条":3,"可乐":4,"雪碧":5} # 直接运行以下代码,说说你的发现:
\ No newline at end of file list_hero=['语文',440,'数学',370,'英语',520,'历史',890,'政治',980]
dict_hero = {'语文':440,'数学':370,'英语':520,'历史':890,'政治':980}
print(len(list_hero))
print(len(dict_hero))
dict_hero["语文"]=200
print(dict_hero)
dict_hero["化学"]=760
if "生物" in dict_hero:
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