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
Commit 08b963ad authored 4 years ago by BellCodeEditor's avatar BellCodeEditor
Browse files
Options
  • Browse Files
  • Download
  • Email Patches
  • Plain Diff

save project

parent 1890843f
Hide whitespace changes
Inline Side-by-side
Showing with 15 additions and 0 deletions
  • 123.py
123.py 0 → 100644
View file @ 08b963ad
CJ = {}
while True:
name = input("请输入你的姓名:")
scroe = input("请输入你的成绩:")
if name in CJ:
if int(scroe) > CJ[name]:
print("亲爱的" + name +"同学,你的成绩"+ scroe +"分已更新。" )
CJ[name]=int(scroe)
else:
print("你的最高成绩没有变化。")
else:
CJ[name]=int(scroe)
print("亲爱的" + name +"同学,你的第一次成绩"+ scroe +"分已添加。" )
print(CJ)
\ No newline at end of file
This diff is collapsed. Click to expand it.
  • Write
  • Preview
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