Skip to content
  • P
    Projects
  • G
    Groups
  • S
    Snippets
  • Help

Administrator / lesson9_2

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Issues 0
  • Merge Requests 0
  • Pipelines
  • Wiki
  • Snippets
  • Members
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Branches
  • Tags
  • Contributors
  • Graph
  • Compare
  • Charts
Switch branch/tag
  • lesson9_2
  • diy2.py
Find file
BlameHistoryPermalink
  • BellCodeEditor's avatar
    save project · 213193d6
    BellCodeEditor committed 3 years ago
    213193d6
diy2.py 341 Bytes
Edit
1 2 3 4 5 6 7 8 9 10
a = {'语文':91,'数学':88,'英语':85}
b = {'语文':90,'数学':82,'英语':81}
c = {'语文':99,'数学':86,'英语':80}
score = {'悟空':a,'诺一':b,'小贝':c}
name = input("名字:")
if name in score:
    for k,v in score[name].items():           
        print(k,v)
else:
    print("你个脑残,自己名字记不住,傻逼")