from turtle import Screen, Turtle import time screen = Screen() screen.setup(width=600, height=600) screen.bgcolor("black") screen.tracer(0) # 화면 깜빡임을 없애기 위해 자동 업데이트를 off screen.title("kio's snake game - ver.20220223(the first one)") color = ["red", "orange", "yellow", "green", "blue", "navy", "purple"] color_index = 0 turtle_num = 3 # 뱀길이는 3개로 시작 starting_position = [(0,0),(-20,0),(-40,0)] # fo..

import turtle import random from turtle import Turtle, Screen screen = Screen() screen.setup(width=500,height=400) guess = screen.textinput(title="Turtle race by kio, 21Feb2022", prompt="Guess what color of turtle wins? Make your bet ! : ") turtle_num = 7 color = ["red", "orange", "yellow", "green", "blue", "navy", "purple"] all_turtles = [] for num in range(turtle_num): # 같은 이름이라도 object는 다르구나!..

import turtle from turtle import Turtle, Screen tim = Turtle() moving_amount = 10 def move_forwards(): tim.fd(moving_amount) def move_backwards(): tim.bk(moving_amount) def move_left(): tim.lt(moving_amount) def move_right(): tim.rt(moving_amount) def clear(): screen.resetscreen() tim.setpos(0,0) screen = Screen() screen.listen() screen.onkey(key="w", fun=move_forwards) #함수를 다른 함수에 전달할 경우, ()는 생..

import random from turtle import Turtle, Screen import colorgram import turtle turtle.colormode(255) tim = Turtle() tim.speed("fastest") picked_color = [] for i in colorgram.extract('remember-damien-hirst-in-mammoth-art-2.654a308.jpg', 30): r = i.rgb.r g = i.rgb.g b = i.rgb.b color = (r,g,b) picked_color.append(color) for y in range(-250,250,50): for x in range(-350,400,50): tim.pu() tim.setposi..

import random from turtle import Turtle, Screen import turtle turtle.colormode(255) tim = Turtle() tim.shape("turtle") tim.pensize(1) tim.speed("fastest") def pen_color(): R = random.randint(0, 255) G = random.randint(0, 255) B = random.randint(0, 255) color = (R,G,B) return color def draw_spirograph(gap): heading = 0 while heading < 360: tim.color(pen_color()) tim.setheading(heading) tim.circle..

import random from turtle import Turtle, Screen import turtle turtle.colormode(255) tim = Turtle() tim.shape("turtle") tim.pensize(10) tim.speed("fastest") direction = [0,90,180,270] def pen_color(): R = random.randint(0, 255) G = random.randint(0, 255) B = random.randint(0, 255) pen_color = (R,G,B) return pen_color for _ in range(200): tim.color(pen_color()) tim.setheading(random.choice(directi..

import random from turtle import Turtle, Screen import turtle turtle.colormode(255) tim = Turtle() tim.shape("turtle") for poly in range(3, 11): R = random.randint(0, 255) G = random.randint(0, 255) B = random.randint(0, 255) tim.pencolor(R, G, B) for _ in range(poly): tim.forward(100) tim.right(360 / poly) screen = Screen() screen.exitonclick()
- Total
- Today
- Yesterday
- 차집합
- storage
- 중복제거
- oracle
- cloud-init
- 부동없이
- 대소문자
- dezoomify
- virt-sysprep
- Join
- powercli
- set()
- LIST
- sysprep
- 스토리지
- vmware
- insert
- dp-2
- dp-1
- 읽어오기
- 정렬
- EXA
- 3par
- 변수화
- powershell
- exadata
- vmware.powercli
- artandculture
- 배열
- fromkeys
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |