Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
lesson7_5
This project
Loading...
Sign in
Toggle navigation
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
45353699
authored
Oct 05, 2022
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
e69cd407
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
4 deletions
r yt
r yt
View file @
45353699
score=('悟空':34,'小贝':100,'诺依':100
name=input("请输入要查询的名字")
print=("*"*"30)
if name in score
score=('悟空':34,'小贝':100,'诺依'123)
while True:
print("请输入要查询的名字,推出请输入q")
print=("*"*30)
if name in score
info=score["name"]
for k,v in info times():
print(k,v)
elif name=='q':
break
else:
print("查询错误,请输入正确的名字")
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment