Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
bellcode
/
lesson3-5-1_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
cb706dca
authored
4 years ago
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
fa86bf51
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
8 deletions
diy1.py
diy1.py
View file @
cb706dca
import
turtle
import
turtle
pen
=
turtle
.
Pen
()
pen
=
turtle
.
Pen
()
pen
.
goto
(
0
,
-
100
)
screen
=
turtle
.
Screen
()
screen
=
turtle
.
Screen
()
screen
.
bgcolor
(
"red"
)
screen
.
bgcolor
(
"red"
)
len
=
textinput
(
"提示"
,
"大小为?(只能用整数)"
)
len
=
screen
.
textinput
(
"提示"
,
"大小为?(只能用整数)"
)
a
=
int
(
len
)
a
=
int
(
len
)
pen
.
penup
()
pen
.
penup
()
pen
.
write
(
"bellcode的盗版不好玩,
\n
Microsoft的正版,
\n
好玩!!!"
,
font
=
(
"Times"
,
30
,
"normil"
))
pen
.
goto
(
0
,
-
100
)
pen
.
write
(
"bellcode是盗版的不好玩,
\n
Microsoft的正版,
\n
好玩!!!"
,
font
=
(
"Times"
,
30
,
"normal"
))
pen
.
hideturtle
()
pen
.
hideturtle
()
penl
=
turtle
.
Pen
()
penl
=
turtle
.
Pen
()
penl
.
color
(
"
red
"
)
penl
.
color
(
"
green
"
)
penl
.
pensize
(
10
)
penl
.
pensize
(
10
)
penl
.
fillcolor
(
"
red
"
)
penl
.
fillcolor
(
"
black
"
)
penl
.
begin_fill
()
penl
.
begin_fill
()
penl
.
left
(
45
)
penl
.
left
(
45
)
penl
.
forward
(
2
*
a
)
penl
.
forward
(
2
*
a
)
penl
.
circle
(
50
,
180
)
penl
.
circle
(
a
,
180
)
penl
.
right
(
90
)
penl
.
right
(
90
)
penl
.
circle
(
50
,
180
)
penl
.
circle
(
a
,
180
)
penl
.
forward
(
100
)
penl
.
forward
(
2
*
a
)
penl
.
end_fill
()
penl
.
end_fill
()
turtle
.
done
()
turtle
.
done
()
\ No newline at end of file
This diff is collapsed.
Click to expand it.
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