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

save project

parent ea846f82
Hide whitespace changes
Inline Side-by-side
Showing with 17 additions and 8 deletions
  • diy2.py
diy2.py
View file @ 469fa2a2
......@@ -5,11 +5,20 @@ score = {'悟空':Student1,'小贝':Student2,'诺伊':Student3}
# 请对字典进行遍历,将保存的分数以键值对的形式提取打印出来
space = "*"*30
name = input("请输入您的名字_")
if name in score:
info = score[name]
print(space)
while True:
name = input("请输入您的名字_")
print(space)
for k,v in info.items():
print(k,v)
else:
print("错误:未查询到名字")
\ No newline at end of file
if name in score:
info = score[name]
for k,v in info.items():
print(k,v)
input("按下Enter键继续")
print(space)
elif name == "/break":
print("系统结束")
break
else:
print("错误:未查询到名字")
input("按下Enter键继续")
print(space)
\ 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