Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
bellcode
/
lesson2-5_DIY1
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
08791569
authored
Jan 30, 2021
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
c083b270
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
10 deletions
大风车.py
词汇.py
大风车.py
View file @
08791569
import
turtle
print
(
"hello,world!"
)
import
turtle
import
turtle
pen
=
turtle
.
Pen
()
pen
=
turtle
.
Pen
()
color
=
[
"red"
,
"green"
,
"orange"
,
"yellow"
]
color
=
[
"red"
,
"green"
,
"orange"
,
"yellow"
]
...
...
词汇.py
View file @
08791569
score
=
{
'语文'
:
89
,
'数学'
:
87
,
'英语'
:
90
,}
student1
=
{
'语文'
:
45
,
'数学'
:
89
,
'英语'
:
79
,}
score
=
{
'语文'
:
89
,
'数学'
:
87
,
'英语'
:
90
,}
student1
=
{
'语文'
:
45
,
'数学'
:
89
,
'英语'
:
79
,}
for
d
,
v
in
score
.
items
():
student2
=
{
'语文'
:
66
,
'数学'
:
90
,
'英语'
:
67
,}
print
(
d
,
v
)
student3
=
{
'语文'
:
89
,
'数学'
:
76
,
'英语'
:
78
,}
student1
=
{
'语文'
:,
'数学'
:,
'英语'
:,}
a
=
{
'小明'
:
student1
,
'小王'
:
student2
,
'小李'
:
student3
}
student2
=
{
'语文'
:,
'数学'
:,
'英语'
:,}
b
=
input
(
"学生姓名"
)
student3
=
{
'语文'
:,
'数学'
:,
'英语'
:,}
if
b
in
a
:
c
=
a
[
b
]
for
d
,
v
in
c
.
items
():
print
(
d
,
v
)
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