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

Administrator / lesson7_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
Commit e8224d2c authored 2 years ago by BellCodeEditor's avatar BellCodeEditor
Browse files
Options
  • Browse Files
  • Download
  • Email Patches
  • Plain Diff

save project

parent 9ca901cd
Hide whitespace changes
Inline Side-by-side
Showing with 7 additions and 54 deletions
  • asd.py
  • diy1.py
  • diy2.py
  • jkmnonin.py
asd.py 0 → 100644
View file @ e8224d2c
student1 = {'语文':91,'数学':21,'英语':19}
student2 = {'语文':99,'数学':81,'英语':79}
student3 = {'语文':96,'数学':11,'英语':19}
score = {'悟空':student1,'诺依':student2,'小贝':student3}
name = {''}
\ No newline at end of file
This diff is collapsed. Click to expand it.
diy1.py deleted 100644 → 0
View file @ 9ca901cd
dict_hero={'请问':10,'阿萨德':21,'自行车':22,'发过火':29,'金坷垃':30}
print(dict_hero)
print(dict_hero['发过火'])
dict_hero['金坷垃']=32
print(dict_hero)
dict_hero['把你们']=25
print(dict_hero)
if '把你们' in dict_hero:
print(dict_hero['把你们'])
else:
print("错误")
print(dict_hero)
This diff is collapsed. Click to expand it.
diy2.py deleted 100644 → 0
View file @ 9ca901cd
score={'可乐':63,'牛奶':94,'大肠':92,'日你妈':81}
k=input('请输入您的姓名:')
v=input('请输入你的最新成绩:')
if k in score:
if int(v)>score[k]:
score[k]=int(v)
print(k+'同学,恭喜你成功更新为'+v+'分')
else:
print(k+'同学,遗憾的通知你,成绩未被刷新')
else:
score[k]=int(v)
print('亲爱的'+k+'同学,您的前第一次'+v+'分')
\ No newline at end of file
This diff is collapsed. Click to expand it.
jkmnonin.py deleted 100644 → 0
View file @ 9ca901cd
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