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

bellcode / lesson8-5

  • 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
  • lesson8-5
  • vbdf.py
Find file
BlameHistoryPermalink
  • BellCodeEditor's avatar
    save project · fc25543b
    BellCodeEditor committed 4 years ago
    fc25543b
vbdf.py 343 Bytes
Edit
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
dict={'后悔':53,'地方':76,'有关':87}
k=input('你的名字')
v=input('你的成绩')
if k in dict:
    if int(v)>dict[k]:
        dict[k]=int(v)
        print('你的新成绩'+v+'已刷新')
        print(dict)
    else:
        print('未刷新')
else:
    dict[k]=int(v)
    print('成绩以增加')
    print(dict)