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
Commit 35ad4632 authored a year ago by BellCodeEditor's avatar BellCodeEditor
Browse files
Options
  • Browse Files
  • Download
  • Email Patches
  • Plain Diff

save project

parent c0b0e658 c384109l930p219a9934/is895218
Show whitespace changes
Inline Side-by-side
Showing with 11 additions and 7 deletions
  • diy2.py
diy2.py
View file @ 35ad4632
......@@ -2,15 +2,19 @@ student1 = {'语文':1,'数学':100,'英语':2}
student2 = {'语文':11,'数学':1,'英语':20}
student3 = {'语文':0.000001,'数学':9,'英语':42}
score = {'悟空':student1,'诺伊':student2,'核武':student3}
name = input("名字:")
print("*"*30)
if name in score:
while True:
print("考虑到离开大陆旅客!!!")
name = input("名字:")
print("*"*30)
if name in score:
score=score[name]
for k,v in score.items():
print(k,v)
print("*"*30)
else:
print("考虑到离开大陆旅客!!!")
elif name == "q":
break
else:
print("考虑到离开大陆旅客!!!")
print("*"*30)
print("退出程序")
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