⽤Python海龟画科⽐LOGO
新⼿刚学Python,⽤海龟画了科⽐的logo。
感兴趣的话可以运⾏看看!
import turtle
turtle.hideturtle()
turtle.penup()
turtle.width(2)
<(-200,0)
#科⽐logo
<(-204,-12)
turtle.begin_fill()
turtle.fillcolor("purple")
turtle.pendown()
turtle.right(90)
turtle.forward(160)
turtle.right(128)
turtle.forward(20)
turtle.right(45)
turtle.forward(112)
<(-204,-12)
turtle.penup()
<(-204,0)
turtle.pendown()
turtle.begin_fill()
turtle.fillcolor("purple")
turtle.setheading(155)
turtle.forward(112)
turtle.left(133)
turtle.forward(32)
turtle.left(30)
turtle.forward(68)
<(-204,0)
turtle.penup()
<(-204,8)
turtle.pendown()
turtle.begin_fill()
turtle.fillcolor("purple")
turtle.setheading(90)
turtle.forward(32)
turtle.left(67)
turtle.forward(80)
turtle.left(42)
turtle.forward(28)
<(-204,8)
turtle.penup()
<(-196,-12)
turtle.begin_fill()
turtle.fillcolor("purple")
turtle.pendown()
turtle.setheading(270)
turtle.forward(160)
turtle.left(128)
turtle.forward(20)
turtle.left(45) turtle.forward(112) (-196,-12) d_fill()
turtle.penup() (-196,0) turtle.pendown() turtle.begin_fill() turtle.fillcolor("purple") turtle.setheading(25) turtle.forward(112) turtle.right(133) turtle.forward(32) turtle.right(30) turtle.forward(68) (-196,0) d_fill()
turtle.penup() (-196,8) turtle.pendown() turtle.begin_fill() turtle.fillcolor("purple") turtle.setheading(90) turtle.forward(32) turtle.right(67) turtle.forward(80) turtle.right(42) turtle.forward(28) (-196,8) d_fill()python新手怎么兼职
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。
发表评论