Commit 2437ed9c by BellCodeEditor

save project

parent 76fbadde
Showing with 10 additions and 8 deletions
dict_hero = {'赵一':30,'丁二':37,'孙五':52,'王猛':89,'周亮':98} score = {'语文':91,'数学':88,'英语':85}
dict_hero["孙五"]=150
print(dict_hero) # 请对字典进行遍历,将保存的分数以键值对的形式提取打印
dict_hero["师傅"]="唐僧"
print(dict_hero) for k,v in score.items():
if '师傅' in dict_hero: print(k,v)
print("师傅在")
\ No newline at end of file
import turtle
pen=turtle.Pen
\ 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