Статья Автор: Zhabunin Aleksadr

import turtle t = turtle.Turtle() s= turtle.Screen() t.speed(100) t.fillcolor('green') t.begin_fill() t.fd(400) t.rt(90) t.fd(400) t.rt(90) t.fd(800) t.rt(90) t.fd(400) t.rt(90) t.fd(400) t.end_fill() t.fillcolor('brown') t.begin_fill() t.lt(90) t.fd(150) t.lt(180) t.fd(20) t.rt(90) t.fd(20) t.rt(90) t.fd(20) t.lt(90) t.fd(20) t.lt(90) t.fd(20) t.rt(90) t.fd(20) t.rt(90) t.fd(20) t.lt(90) t.fd(20) t.lt(90) t.fd(20) t.rt(90) t.fd(20) t.rt(90) t.fd(20) t.lt(90) t.fd(20) t.lt(90) t.fd(20) t.rt(90) t.fd(20) t.rt(90) t.fd(20) t.lt(90) t.fd(20) t.lt(90) t.fd(20) t.rt(90) t.fd(20) t.rt(90) t.fd(20) t.lt(90) t.fd(20) t.lt(90) t.fd(20) t.rt(90) t.fd(20) t.rt(90) t.fd(20) t.lt(90) t.fd(20) t.lt(90) t.fd(20) t.rt(90) t.fd(20) t.lt(90) t.fd(200) t.end_fill() a=int(input()) t.penup() t.goto(0,-70) t.lt(90) t.bk(150) t.fd(-100) t.pendown() if a==0: for i in range(0,20): t.fillcolor(255-i*20-55, 20*i+55, 0) t.begin_fill() t.circle(30) t.end_fill() t.fd(20) elif a==2: for i in range(0,20): t.fillcolor(0, 255-i*20-55, 20*i+55) t.begin_fill() t.circle(30) t.end_fill() t.fd(20) elif a==3: for i in range(0,20): t.fillcolor(200*i, 0, 255-i*20-55) t.begin_fill() t.circle(30) t.end_fill() t.fd(20) if a==1: for i in range(0,20): t.fillcolor(255-i*5-55, 0, 0) t.begin_fill() t.circle(30) t.end_fill() t.fd(20) t.penup() t.lt(90) t.fd(85) t.lt(90) t.fd(20) t.pendown() a=int(input()) if a==0: for i in range(0,20): t.fillcolor(255-i*20-55, 20*i+55, 0) t.begin_fill() t.circle(20) t.end_fill() t.fd(20) elif a==2: for i in range(0,20): t.fillcolor(0, 255-i*25-55, 20*i+55) t.begin_fill() t.circle(20) t.end_fill() t.fd(20) elif a==3: for i in range(0,20): t.fillcolor(0, 0, 255-i*1-55) t.begin_fill() t.circle(20) t.end_fill() t.fd(20) if a==1: for i in range(0,20): t.fillcolor(255-i*1-55, 70, 0) t.begin_fill() t.circle(20) t.end_fill() t.fd(20) t.lt(180) t.fd(23) a=int(input()) if a==0: for i in range(0,20): t.fillcolor(255-i*20-55, 20*i+55, 0) t.begin_fill() t.circle(10) t.end_fill() t.fd(20) elif a==2: for i in range(0,20): t.fillcolor(0, 255-i*20-55, 20*i+55) t.begin_fill() t.circle(10) t.end_fill() t.fd(20) elif a==3: for i in range(0,20): t.fillcolor(0, 0, 255-i*20-55) t.begin_fill() t.circle(10) t.end_fill() t.fd(20) if a==1: for i in range(0,20): t.fillcolor(255-i*1-55, 70, 0) t.begin_fill() t.circle(10) t.end_fill() t.fd(20) t.penup() t.goto(10,150) t.pendown()

Пропустить Навигационные Ссылки.
Чтобы оставить комментарий нужна авторизация
Печать