Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
bellcode
/
lesson8-4
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
1a3a18ed
authored
Jul 11, 2023
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
20276f22
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
17 deletions
KACDA.PY
diy.py
KACDA.PY
0 → 100644
View file @
1a3a18ed
student1
=
{
'1'
:
98
,
'2'
:
89
,
'3'
90
}
student2
=
{
'4'
:
60
,
'5'
:
50
,
'6'
95
}
student3
=
{
'7'
:
99
,
'8'
:
80
,
'9'
97
}
s
=
{
'10'
:
student1
,
'11'
:
student2
,
'12'
:
student3
}
while
True
:
name
=
input
(
"名字"
)
if
name
in
score
:
g
=
score
[
name
]
\ No newline at end of file
diy.py
View file @
1a3a18ed
# student1={'1':77,'2':68,'3':4600}
# student2={'1':99,'2':99,'3':6005}
# student3={'1':99,'2':99,'3':5500}
# score={'px':student1,'fqstyjfl':student2,'wdqcmyhh':student3}
# while True:
# print("名字 syxyyl退出")
# name=input("冥渍:")
# if name in score:
# syx=score[name]
# print('*'*30)
# for s,y in syx.items():
# print(s,y)
# elif name=='syxyyl':
# break
# else:
# print("仁济")
\ No newline at end of file
student1
=
{
'1'
:
77
,
'2'
:
68
,
'3'
:
4600
}
student2
=
{
'4'
:
99
,
'5'
:
99
,
'6'
:
6005
}
student3
=
{
'7'
:
99
,
'2'
:
99
,
'3'
:
5500
}
score
=
{
'a'
:
student1
,
'fqstyjfl'
:
student2
,
'wdqcmyhh'
:
student3
}
while
True
:
print
(
"名字 "
)
name
=
input
(
"冥渍:"
)
if
name
in
score
:
syx
=
score
[
name
]
print
(
'*'
*
30
)
for
s
,
y
in
syx
.
items
():
print
(
s
,
y
)
elif
name
==
'syxyyl'
:
break
else
:
print
(
"仁济"
)
\ No newline at end of file
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