Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
python_study
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
김진석
python_study
Commits
64c2f16c
Commit
64c2f16c
authored
6 years ago
by
김진석
Browse files
Options
Downloads
Patches
Plain Diff
Update 201520544_김진석_Tultle_proj.py
parent
e397c7cc
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
201520544_김진석_Tultle_proj.py
+7
-7
7 additions, 7 deletions
201520544_김진석_Tultle_proj.py
with
7 additions
and
7 deletions
201520544_김진석_Tultle_proj.py
+
7
−
7
View file @
64c2f16c
...
...
@@ -3,7 +3,7 @@ import turtle as t
t
.
setup
(
10
,
20
,
0
,
0
)
for
i
in
range
(
0
,
9
):
t
.
penup
()
t
.
goto
(
-
75
*
i
,
-
25
*
i
)
t
.
goto
(
-
75
*
i
,
-
25
*
i
)
#n이 증가할 때 마다 터틀을 이동시킴
t
.
pendown
()
t
.
begin_fill
()
if
(
i
%
2
==
0
):
...
...
@@ -15,16 +15,16 @@ for i in range (0,9):
#암모나이트 모양 만들기
t
.
goto
(
0
,
0
)
t
.
goto
(
0
,
0
)
#터틀을 원점으로 되돌림
t
.
pensize
(
1
)
t
.
shape
(
"
turtle
"
)
t
.
bgcolor
(
"
gray
"
)
t
.
color
(
"
white
"
)
t
.
speed
(
0
)
t
.
bgcolor
(
"
gray
"
)
#배경색을 회색으로
t
.
color
(
"
white
"
)
#흰색으로 원을 그림
t
.
speed
(
0
)
#스피드를 가장 빠르게
for
k
in
range
(
1
,
200
):
t
.
circle
(
k
)
t
.
left
(
360
/
k
)
t
.
circle
(
k
)
#현재위치에서 반지름이 k인 원을 그림
t
.
left
(
360
/
k
)
#거북이가 (360/k) 만큼 왼쪽으로 회전
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment