Commit 006846bb by BellCodeEditor

save project

parent 3166ac6d
Showing with 7 additions and 7 deletions
# 直接运行以下代码,说说你的发现: # 直接运行以下代码,说说你的发现:
list_hero=['赵一',30,'丁二',37,'孙五',52,'王猛',89,'周亮',98] dict_hero = {'屎':666,'尿':54088,'臭豆腐':54012,'柠檬':13479,'腐乳':2468}
dict_hero = {'赵一':30,'丁二':37,'孙五':52,'王猛':89,'周亮':98} n = input("::")
print(dict_hero['周亮']) if n in dict_hero:
dict_hero["周亮"]=100 print(n,"需要",dict_hero[n],"元钱")
print(len(list_hero)) else:
print(dict_hero) print("这里没有",n)
\ 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