본문 바로가기 메뉴 바로가기

Jenny's Programming Blog

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

Jenny's Programming Blog

검색하기 폼
  • 분류 전체보기 (88)
    • Frontend (15)
      • HTML & CSS (5)
      • Javascript (2)
      • Jquary (8)
      • ECMA (0)
    • Java (63)
      • JAVA (20)
      • JAVA의 정석 (11)
      • JAVA의 정석_객체지향 (24)
      • JAVA의 정석_문제풀이 (7)
      • 오답노트 (1)
    • Spring (4)
      • Spring Legacy (3)
      • Spring Boot (1)
      • JSP (0)
    • Backend (4)
    • Python (2)
  • 방명록

Python (2)
Turtle 2

Making the square using function. Defined one variable named "start". I can put 2 properties which are "length" and "angle" into the variable "start". Code import turtle jenny=turtle.Turtle() def start(length,angle): jenny.forward(length) jenny.left(angle) jenny.forward(length) jenny.left(angle) jenny.forward(length) jenny.left(angle) jenny.forward(length) start(100,90) Example 2: Drawing 4 squa..

Python 2022. 8. 13. 14:40
Turtle 1

One of the simplest things you can do using the turtle module is to draw a line. There are always four steps you need to do in order to use the turtle module: Import the turtle module. If we skip this step, there’ll be no turtle to control. Create a turtle to control. Draw things. Do stuff. This will also automatically create the screen. Run turtle.done(). (NOT bob.done()!) Notice that turtle.do..

Python 2022. 8. 12. 23:24
이전 1 다음
이전 다음
250x250
반응형
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday

Blog is powered by Tistory / Designed by Tistory

티스토리툴바