首頁 文章 turtle代码练习

turtle代码练习

2021-11-11 22:27  瀏覽數:406  來源:小键人3043260    

import turtle
turtle.pensize(10)
turtle.pencolor("pink")
turtle.penup()
turtle.goto(-50,180)
turtle.pendown()
turtle.goto(50,180)
turtle.penup()
turtle.goto(-75,90)
turtle.pendown()
turtle.goto(75,90)
turtle.penup()
turtle.goto(-100,0)
turtle.pendown()
turtle.goto(100,0)
turtle.penup()
turtle.goto(-125,-90)
turtle.pendown()
turtle.goto(125,-90)
turtle.penup()
turtle.goto(-125,-180)
turtle.pendown()
turtle.goto(125,-180)
turtle.penup()
turtle.goto(-50,180)
turtle.pendown()
turtle.goto(-50,90)
turtle.penup()
turtle.goto(0,180)
turtle.pendown()
turtle.goto(0,90)
turtle.penup()
turtle.goto(50,180)
turtle.pendown()
turtle.goto(50,90)
turtle.penup()
turtle.goto(-75,90)
turtle.pendown()
turtle.goto(-75,0)
turtle.penup()
turtle.goto(-25,90)
turtle.pendown()
turtle.goto(-25,0)
turtle.penup()
turtle.goto(25,90)
turtle.pendown()
turtle.goto(25,0)
turtle.penup()
turtle.goto(75,90)
turtle.pendown()
turtle.goto(75,0)
turtle.penup()
turtle.goto(-100,0)
turtle.pendown()
turtle.goto(-100,-90)
turtle.penup()
turtle.goto(-50,0)
turtle.pendown()
turtle.goto(-50,-90)
turtle.penup()
turtle.goto(0,0)
turtle.pendown()
turtle.goto(0,-90)
turtle.penup()
turtle.goto(50,0)
turtle.pendown()
turtle.goto(50,-90)
turtle.penup()
turtle.goto(100,0)
turtle.pendown()
turtle.goto(100,-90)
turtle.penup()
turtle.goto(-125,-90)
turtle.pendown()
turtle.goto(-125,-180)
turtle.penup()
turtle.goto(-75,-90)
turtle.pendown()
turtle.goto(-75,-180)
turtle.penup()
turtle.goto(-25,-90)
turtle.pendown()
turtle.goto(-25,-180)
turtle.penup()
turtle.goto(25,-90)
turtle.pendown()
turtle.goto(25,-180)
turtle.penup()
turtle.goto(75,-90)
turtle.pendown()
turtle.goto(75,-180)
turtle.penup()
turtle.goto(125,-90)
turtle.pendown()
turtle.goto(125,-180)
turtle.penup()
turtle.goto(-50,150)
turtle.pendown()
turtle.goto(-25,150)
turtle.penup()
turtle.goto(-25,120)
turtle.pendown()
turtle.goto(0,120)
turtle.penup()
turtle.goto(25,150)
turtle.pendown()
turtle.goto(25,120)
turtle.penup()
turtle.goto(-75,30)
turtle.pendown()
turtle.goto(-50,30)
turtle.penup()
turtle.goto(-50,60)
turtle.pendown()
turtle.goto(0,60)
turtle.penup()
turtle.goto(0,30)
turtle.pendown()
turtle.goto(25,30)
turtle.penup()
turtle.goto(50,60)
turtle.pendown()
turtle.goto(50,30)
turtle.penup()
turtle.goto(-75,-20)
turtle.pendown()
turtle.goto(-75,-30)
turtle.penup()
turtle.goto(-100,-50)
turtle.pendown()
turtle.goto(-75,-50)
turtle.goto(-75,-70)
turtle.penup()
turtle.goto(-25,0)
turtle.pendown()
turtle.goto(-25,-55)
turtle.penup()
turtle.goto(-50,-80)
turtle.pendown()
turtle.goto(-25,-80)
turtle.penup()
turtle.goto(-4,0)
turtle.pendown()
turtle.goto(-4,-55)
turtle.penup()
turtle.goto(-4,-80)
turtle.pendown()
turtle.goto(-4,-90)
turtle.penup()
turtle.goto(0,-30)
turtle.pendown()
turtle.goto(25,-30)
turtle.penup()
turtle.goto(25,-60)
turtle.pendown()
turtle.goto(50,-60)
turtle.penup()
turtle.goto(75,-30)
turtle.pendown()
turtle.goto(75,-60)
turtle.penup()
turtle.goto(-125,-150)
turtle.pendown()
turtle.goto(-100,-150)
turtle.penup()
turtle.goto(-100,-120)
turtle.pendown()
turtle.goto(-75,-120)
turtle.penup()
turtle.goto(-50,-110)
turtle.pendown()
turtle.goto(-50,-120)
turtle.penup()
turtle.goto(-75,-145)
turtle.pendown()
turtle.goto(-50,-145)
turtle.goto(-50,-165)
turtle.penup()
turtle.goto(0,-90)
turtle.pendown()
turtle.goto(0,-145)
turtle.penup()
turtle.goto(-25,-170)
turtle.pendown()
turtle.goto(0,-170)
turtle.penup()
turtle.goto(21,-90)
turtle.pendown()
turtle.goto(21,-145)
turtle.penup()
turtle.goto(21,-170)
turtle.pendown()
turtle.goto(21,-180)
turtle.penup()
turtle.goto(25,-120)
turtle.pendown()
turtle.goto(50,-120)
turtle.penup()
turtle.goto(50,-150)
turtle.pendown()
turtle.goto(75,-150)
turtle.penup()
turtle.goto(100,-120)
turtle.goto(100,-150)
turtle.penup()
turtle.goto(200,-250)
turtle.done()



聲明:以上文章均為用戶自行添加,僅供打字交流使用,不代表本站觀點,本站不承擔任何法律責任,特此聲明!如果有侵犯到您的權利,請及時聯系我們刪除。

字符:    改为:
去打字就可以设置个性皮肤啦!(O ^ ~ ^ O)