Commit 6a52f390 by BellCodeEditor

save project

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