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

bellcode / lesson2-5_DIY1

  • 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
  • lesson2-5_DIY1
  • jk.py
Find file
BlameHistoryPermalink
  • BellCodeEditor's avatar
    save project · bef9eea4
    BellCodeEditor committed 6 months ago
    bef9eea4
jk.py 358 Bytes
Edit
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
s1={'语文':100,'数学':114,'英语':98}
s2={'语文':99,'数学':100,'英语':90}
ss={'小王':s1,'小小':s2}
while True:
    i=input("你叫什么名字")
    if i =="stop":
        break 
    if i in ss:
        b=ss[i]
        for m,n in b.items():
            print(m,n)
    else: 
        print("名字不在名单里")