Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
lesson5_1
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
26a3094f
authored
Jul 11, 2023
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
b156dec2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
27 deletions
3.py
diy1.py
3.py
View file @
26a3094f
student1
=
{
'语文'
:
91
'数学'
:
88
'英语'
:
856
}
student2
=
{
'语文'
:
42
'数学'
:
88
'英语'
:
857
}
student3
=
{
'语文'
:
66
'数学'
:
88
'英语'
:
858
}
score
=
{
'dot'
:
student1
'peter'
student2
'kitty'
:
student3
}
name
=
input
(
"名字:"
)
info
=
score
[
name
]
for
k
,
v
in
info
.
items
():
print
(
k
,
v
)
diy1.py
View file @
26a3094f
# import random
# massage="欢乐,你的听力口语,‘额古迹色入我问iiigopriro"
# key=".wklejlhp和非农IP为hpghp"
# newmassage=""
# for i in massage:
# a=[i]
# b=random.choice(key)
# c=random.choice(key)
# text=a+b+c
# newmassage+=text
# massage1=list(newmassage)
# massage1.insert(random.randint(0,len(newmassage)),"#^*$$*^%^#*#"
# massage2="".join(massage1)
# print(massage2)
# name="贝尔编程"
# namee=list(name)
# name.insert(random.randint(0,len(name)),"玩累了"
# print(list)
#
# student1={'语文':91'数学':88'英语':856}
# student2={'语文':42'数学':88'英语':857}
# student3={'语文':66'数学':88'英语':858}
# score={'dot':student1'peter'student2'kitty':student3}
# while True:
# print("入输查询名字,退出按q")
# name = input("名字:")
# if name in score:
# a=score[name]
# for s , y in a.items():
# print(s,y)
# print("*"*30)
# elif name=='q':
# break
# print('输入错误')
# else:
# print('入输名字错误')
# break
c
...
...
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