Commit f7995fda by BellCodeEditor

save project

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