Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
pygame_lesson2_diy3
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
a4760926
authored
Jun 04, 2023
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
c52e3914
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
0 deletions
123.py
8.py
123.py
0 → 100644
View file @
a4760926
import
turtle
#导入海龟模块
pen
=
turtle
.
Pen
()
#创建一支画笔
pen
.
goto
(
0
,
0
)
#初始化画笔位置
pen
.
fillcolor
(
"black"
)
#设置填充颜色为黑色
pen
.
begin_fill
()
#开始填充
pen
.
circle
(
100
,
-
180
)
#画一个半径为100的半圆圆形
pen
.
circle
(
50
,
-
180
)
#半径为50的半圆
pen
.
circle
(
-
50
,
-
180
)
#半径为50的反半圆
pen
.
end_fill
()
#结束填充
pen
.
circle
(
-
100
,
-
180
)
#画一个半径为100反向的半圆
pen
.
up
()
#抬笔
pen
.
goto
(
0
,
25
)
#
pen
.
down
()
pen
.
begin_fill
()
pen
.
circle
(
25
)
pen
.
end_fill
()
pen
.
up
()
pen
.
goto
(
0
,
125
)
pen
.
fillcolor
(
"white"
)
pen
.
down
()
pen
.
begin_fill
()
pen
.
circle
(
25
)
pen
.
end_fill
()
pen
.
hideturtle
()
turtle
.
done
()
\ No newline at end of file
8.py
0 → 100644
View file @
a4760926
import
tkinter
root
=
tkinter
.
Tk
()
root
.
title
(
'LOL'
)
root
.
geometry
(
'400x320+500+300'
)
root
.
mainloop
()
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