Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
lesson7_6
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
4da459a3
authored
Jun 27, 2021
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
ad27f730
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
70 additions
and
0 deletions
XXX.py/XX.py
father's_day.py
XXX.py/XX.py
0 → 100644
View file @
4da459a3
list_hero
=
[
'赵一'
,
30
,
'丁二'
,
37
]
dict_hero
=
{
'赵一'
:
30
,
'丁二'
:
37
}
print
(
len
(
list_hero
))
print
(
len
(
dict_hero
))
\ No newline at end of file
father's_day.py
0 → 100644
View file @
4da459a3
import
turtle
pen
=
turtle
.
Pen
()
pen
.
speed
(
10000000000
)
pen
.
hideturtle
()
screen
=
turtle
.
Screen
()
screen
.
bgcolor
(
"yellow"
)
answer
=
screen
.
textinput
(
"验证:"
,
"你父亲叫什么名字"
)
if
answer
==
"尤登良"
:
pen
.
pencolor
(
"dark blue"
)
pen
.
fillcolor
(
"dark blue"
)
pen
.
begin_fill
()
pen
.
penup
()
pen
.
goto
(
15
,
95
)
pen
.
pendown
()
pen
.
setheading
(
0
)
pen
.
forward
(
50
)
pen
.
right
(
80
)
pen
.
forward
(
150
)
pen
.
end_fill
()
pen
.
penup
()
pen
.
forward
(
-
150
)
pen
.
left
(
80
)
pen
.
forward
(
-
50
)
pen
.
left
(
180
)
pen
.
left
(
80
)
pen
.
pendown
()
pen
.
pencolor
(
"dark blue"
)
pen
.
fillcolor
(
"dark blue"
)
pen
.
begin_fill
()
pen
.
forward
(
150
)
pen
.
penup
()
pen
.
setheading
(
0
)
pen
.
forward
(
100
)
pen
.
end_fill
()
pen
.
pencolor
(
"dark blue"
)
pen
.
fillcolor
(
"dark blue"
)
pen
.
begin_fill
()
pen
.
right
(
80
)
pen
.
pendown
()
pen
.
right
(
70
)
pen
.
forward
(
60
)
pen
.
right
(
63
)
pen
.
forward
(
60
)
pen
.
end_fill
()
pen
.
penup
()
pen
.
color
(
"pink"
)
pen
.
fillcolor
(
"pink"
)
pen
.
begin_fill
()
pen
.
goto
(
-
100
,
-
100
)
pen
.
pendown
()
pen
.
setheading
(
45
)
pen
.
forward
(
20
)
pen
.
circle
(
10
,
180
)
pen
.
right
(
90
)
pen
.
circle
(
10
,
180
)
pen
.
forward
(
20
)
pen
.
end_fill
()
pen
.
penup
()
pen
.
goto
(
0
,
-
200
)
pen
.
color
(
"black"
)
pen
.
write
(
"仰望父亲,无以为报
\n
唯有道一声
\n
父亲,您辛苦了!"
,
font
=
(
"楷体"
,
20
,
"normal"
))
turtle
.
done
()
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