资源预览内容
第1页 / 共7页
第2页 / 共7页
第3页 / 共7页
第4页 / 共7页
第5页 / 共7页
第6页 / 共7页
第7页 / 共7页
亲,该文档总共7页全部预览完了,如果喜欢就下载吧!
资源描述
曾容融踊蜜兆斤import turtle from turtle import *#turtle.bgpic(xrr.png)pm=Screen() #新建屏幕对象turtle.hideturtle() turtle.speed(2) # 速度#大头的圈圈 turtle.penup() turtle.goto(-145, 135) turtle.pensize(lO) turtle.pencolor(#BB3529) turtle.fillcolor(#DA2D20) turtle.begin_fill() turtle.pendown() turtle.setheading(45) turtle.circle(-15O, 45) turtle.forward(80) turtle.circle(-150,180) turtle.forward(80) turtle.circle(-150,135) turtle.end_fill)#花纹turtle.fillcolor(#FF9300) turtle.begin_fill()turtle.pensize(5)turtle.setheading(15) turtle.circle(-600, 28) turtle.pencolor(#FF9300) turtle.right(30) turtle.circle(-150, -35) turtle.setheading(180)turtle.penup()turtle.setheading(135)turtle.pencolor(red)turtle.goto(0, -215)turtle.pendown()turtle.circle(-4,150)turtle.penup()turtle.setheading(175)turtle.pencolor(blue)turtle.goto(8, -220)turtle.pendown()turtle.circle(-5z120)turtle.penup()turtle.setheading(245)turtle.pencolor(green)turtle.goto(18, -215)turtle.pendown()turtle.circlef-lSO)turtle.penup()turtle.goto(-16, -199)turtle.pencolor(black)turtle.pendownf)turtle.write(BEIJING 2022,font=(华文彳了楷,6, bold italic)turtle.penup()turtle.goto(-10, -203)turtle.pencolor(black)turtle.pendown()turtle.write(Paralympic Games, font=(Arial, 4)#围巾turtle.pensize(l)turtle.penupf)turtle.pencolor(#FF9300)turtle.goto(-74, -113)turtle.fillcolor(#FF9300)turtle.begin_fill)turtle.pendown()turtle.setheading(5)turtle.circle(-1000,3)turtle.right(lO)turtle.circle(300,19)turtle.right(30) turtle.circle(-15,120) turtle.circle(-100,4) turtle.right(20) turtle.circle(-300,25) turtle.right(20) turtle.circle(-65,23) turtle.circle(-15,80) turtle.end_fill()turtle.pensize(l) turtle.penup() turtle.pencolor(#FF9300) turtle.goto(-57, -135) turtle.fillcolor(#FF9300) turtle.begin_fill() turtle.pendown() turtle.setheading(-105) turtle.forward(50) turtle.circle(5,80) turtle.forward(28) turtle.016(5,100) turtle.forward(60) turtle.end_fill() #围巾末尾 turtle.pensize(3) turtle.penup()turtle.pencolor(#DA2D20) turtle.goto(-61, -175) turtle.pendown() turtle.setheading(-105) turtle.forward(20)turtle.penup() turtle.pencolor(#DA2D20) turtle.goto(-54, -178) turtle.pendownf)turtle.setheading(-105) turtle.forward(20)turtle.penupf)turtle.pencolor(#DA2D20) turtle.goto(-47, -181) turtle.pendown()turtle.setheading(-105)turtle.forward(20)turtle.penup()turtle.pencolor(#DA2D20)turtle.goto(-40, -184)turtle.pendown()turtle.setheading(-105)turtle.forward(20)turtle.hideturtle()pm.exitonclick()#单击屏幕关闭窗口turtle.done()turtle.forward(lOO) turtle.circle(150, 42) turtle.end_fill() turtle.pencolor(#DA2D20) turtle.penup() turtle.goto(-100,160) turtle.fillcolor(#DA2D20) turtle.begin_fill() turtle.pendown() turtle.circle(4z 360) turtle.end_fill()turtle.penupf) turtle.goto(-40,169) turtle.fillcolor(#DA2D20) turtle.begin_fill() turtle.pendown() turtle.circle(4, 360) turtle.end_fill()turtle.penup() turtle.goto(20,169) turtle.fillcolor(#DA2D20) turtle.begin_fill()turtle.pendownf) turtle.circle(4z 360)turtle.end_fill()turtle.penup() turtle.goto(80, 163) turtle.fillcolor(#DA2D20) turtle.begin_fill()turtle.pendown() turtle.circle(4, 360)turtle.end_fill()#内部弧线#从左往右#1turtle.pencolor(#FF9300) turtle.penupf)turtle.goto(-130, 135) turtle.setheading(52)turtle.pendown()turtle.circle(-175, -60) turtle.circle(-125, -70) #2turtle.penup()turtle.goto(-80z 150) turtle.setheading(54) turtle.pendown() turtle.circle(-175, -40) turtle.circle(-200, -50) #3turtle.penup()turtle.goto(-10z 155) turtle.setheading(75) turtle.pendown() turtle.circle(-480, -35) #4turtle.penup()turtle.goto(50,150)turtle.setheading(115) turtle.pendown() turtle.circle(270, -40) turtle.circle(500, -12) #5turtle.penup() turtle.goto(120,140) turtle.setheading(130) turtle.pendownf)turtle.circle(180, -40) turtle.circle(145, -80)#脸部turtle.pensize(8)turtle.pencolor(#BB3529) turtle.penup() turtle.goto(-125, 40) turtle.setheading(216) turtle.fillcolorCwhite) turtle.begin_fill() turtle.pendown() turtle.circle(34, 170) turtle.right(60) turtle.circle(170, 63) turtle.right(60) turtle.circle(32, 158) turtle.right(65) turtle.circle(34, 157) turtle.circle(-15,155) turtle.left(30) turtle.circle(36,127) turtle.circle(-15z 45) turtle.right(38) turtle.circle(36,107) turtle.circle(-15, 55) turtle.right(22) turtle.circle(32, 120) turtle.end_fill() #脸蛋左边turtle.pencolor(#F44F39) turtle.penup() turtle.goto(-120z 5) turtle.fillcolor(#F44F39) turtle.begin_fill() turtle.pendown() turtle.circle(15, 360) turtle.end_fill()右边turtle.penup()turtle.goto(85, 0)turtle.fillcolor(#F44F39) turtle.begin_fill() turtle.pendown() turtle.circle(15, 360) turtle.end_fill() #眼睛turtle.pensize(l)# 右黑turtle.pencolor(#534A49) turtle.penup() turtle.goto(65, 35) turtle.fillcolor(#534A49) turtle.begin_fill() turtle.pendown() turtle.setheading(90) turtle.circle(9,180) turtle.forward(9) turtle.circle(9,180) turtle.forward(9) turtle.end_fill() #右白 turtle.penup
网站客服QQ:2055934822
金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号