
파일 다운로드 |
파란사각형.py
0.00MB
from turtle import * def BlueSq(): #사용자 정의함수 #괄호안 특별한 내용 #없이 실행 color("blue") for i in range(4): fd(100) left(90) BlueSq() |

파일 다운로드 |
파란사각형4개.py
0.00MB
from turtle import * def BlueSq(): #사용자 정의함수 #괄호안 특별한 내용 #없이 실행 color("blue") for i in range(4): fd(40) left(90) goto(-100,0) BlueSq() setx(-50) BlueSq() setx(0) BlueSq() setx(50) BlueSq() |
728x90
'■ 현재-ing > ㅡPython' 카테고리의 다른 글
파이썬 window, command=quit, mainloop, 사진, messagebox, file (0) | 2020.07.06 |
---|---|
파이썬 재귀함수, 재귀 호출, while (0) | 2020.07.06 |
파이썬 turtle, write, title, onkeypress, up, down, space, left, right (0) | 2020.07.06 |
파이썬 점(dot), color 두가지 변수 사용, begin_fill, end_fill (0) | 2020.07.06 |
파이썬 원(Circle), 좌표이동(goto), 시계방향, 반시계방향, penup, pendown, setx,sety , clear, reset (0) | 2020.07.06 |