Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
bellcode
/
lesson3-1-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
c76a6285
authored
May 28, 2023
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
46d400c5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
34 deletions
diy.2.py
diy1.py
diy.2.py
0 → 100644
View file @
c76a6285
import
turtle
#背景颜色
screen
=
turtle
.
Screen
()
screen
.
bgcolor
(
"light blue"
)
#写字
pen
=
turtle
.
Pen
()
pen
.
penup
()
pen
.
goto
(
100
,
-
100
)
pen
.
write
(
"嗨嗨嗨
\n
我又来啦昂
\n
今天吃秘制小汉堡"
,
font
=
(
"Time"
,
20
,
"normal"
))
pen
.
hideturtle
()
#画爱心
pen1
=
turtle
.
Pen
()
pen1
.
pencolor
(
"red"
)
pen1
.
pensize
(
1
)
pen1
.
left
(
45
)
pen1
.
forward
(
100
)
pen1
.
circle
(
50
,
180
)
pen1
.
right
(
90
)
pen1
.
circle
(
50
,
180
)
pen1
.
forward
(
100
)
pen1
.
hideturtle
()
turtle
.
done
()
\ No newline at end of file
diy1.py
View file @
c76a6285
'''
设置粗细
设置颜色
转向
u爱知县
花瓣元
转向
画直线
隐藏
展开画布
'''
'''
import turtle as t
t.write("老师好,老师再见,拉屎
\n
,哈哈还,拉了啊,我要
\n
去吃大便,太裤
\n
辣,爱坤#
%
&……@¥#¥
\n
%
¥¥
\n
……&¥&)&&¥@#
\n
!R……………………,蔡徐坤",font=("times",30,"normal"))
t.pensize(5)
t.pencolor("red")
t.left(45)
t.forward(100)
t.circle(50,180)
t.right(90)
t.circle(50,180)
t.forward(100)
t.hideturtle()
t.done()
'''
import
turtle
as
t
t
.
pensize
(
10
)
t
.
pencolor
(
"green"
)
for
i
in
range
:
t
.
forward
(
100
)
t
.
right
(
90
)
t
.
done
()
\ 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