Commit 6a52f390 by BellCodeEditor

save project

parent 052cbd46
Showing with 8 additions and 6 deletions
Toby=["语文","数学","英语","体育","音乐"] Toby=["语文","数学","英语","体育","音乐"]
sb={"语文":100,"数学":110,"英语":120,"体育":92,"音乐":90} sb={"语文":100,"数学":110,"英语":120,"体育":92,"音乐":90}
sb['数学']=150 #输出所有的键
sb['python']=100 for i in sb:
xueke = input('请输入学科名字:') print(i)
print(xueke) #输出所有的值
if xueke in sb: print(sb["语文"])
print(sb[xueke]) for i in sb:
print(sb[i])
\ 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