Commit f7995fda by BellCodeEditor

save project

parent 380c24bf
Showing with 4 additions and 6 deletions
...@@ -2,8 +2,7 @@ Toby=["语文","数学","英语","体育","音乐"] ...@@ -2,8 +2,7 @@ Toby=["语文","数学","英语","体育","音乐"]
sb={"语文":100,"数学":110,"英语":120,"体育":92,"音乐":90} sb={"语文":100,"数学":110,"英语":120,"体育":92,"音乐":90}
sb['数学']=150 sb['数学']=150
sb['python']=100 sb['python']=100
# xueke=input('请输入学科名字:') xueke = input('请输入学科名字:')
if'数学'in sb: print(xueke)
print(sb['数学']) if xueke in sb:
print(Toby) print(sb[xueke])
print(sb)
\ 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