admin 管理员组文章数量: 887031
turtle
import turtle#初始化设置
turtle.penup()
turtle.pensize(5)
turtle.goto(0,-100)
turtle.pendown()
#画圆
turtle.circle(100,360)turtle.pensize(1)
#绘制十字星
turtle.penup()
turtle.goto(-120,0)
turtle.pendown()
turtle.forward(240)turtle.penup()
turtle.goto(0,-120)
turtle.left(90)
turtle.pendown()
turtle.forward(240)#绘制虚线 内圆 #turtle里的圆方向:逆时针来画的
turtle.penup()
turtle.goto(0,-50)
turtle.pendown()
turtle.right(90)
turtle.circle(50,-22.5)
turtle.circle(50,45)turtle.penup()
turtle.circle(50,45)
turtle.pendown()turtle.circle(50,45)turtle.penup()
turtle.circle(50,45)
turtle.pendown()turtle.circle(50,45)turtle.penup()
turtle.circle(50,45)
turtle.pendown()turtle.circle(50,45)#隐藏画笔形状
turtle.hideturtle()
turtle.done()
本文标签: turtle
版权声明:本文标题:turtle 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.freenas.com.cn/jishu/1688188115h189785.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论