码迷,mamicode.com
首页 > 其他好文 > 详细

第一次作业

时间:2018-03-22 19:19:58      阅读:178      评论:0      收藏:0      [点我收藏+]

标签:body   nbsp   eth   class   imp   enc   import   style   span   

25题代码:import turtle
turtle.setup(700,500,200,200)
turtle.fd(150)
turtle.seth(120)
turtle.fd(150)
turtle.seth(-120)
turtle.fd(300)
turtle.seth(0)
turtle.fd(300)
turtle.seth(120)
turtle.fd(150)
turtle.seth(-120)
turtle.fd(150)
turtle.seth(120)
turtle.fd(150)
turtle.seth(0)


28题代码:
import turtle
turtle.setup(1000,600,300,300)
turtle.seth(90)
turtle.fd(180)
turtle.seth(0)
turtle.fd(180)
turtle.seth(-90)
turtle.fd(180)
turtle.seth(180)
turtle.fd(170)
turtle.seth(90)
turtle.fd(170)
turtle.seth(0)
turtle.fd(160)
turtle.seth(-90)
turtle.fd(160)
turtle.seth(180)
turtle.fd(150)


turtle.seth(90)
turtle.fd(150)
turtle.seth(0)
turtle.fd(140)
turtle.seth(-90)
turtle.fd(140)
turtle.seth(180)
turtle.fd(130)
turtle.seth(90)
turtle.fd(130)
turtle.seth(0)
turtle.fd(120)
turtle.seth(-90)
turtle.fd(120)
turtle.seth(180)
turtle.fd(110)


turtle.seth(90)
turtle.fd(110)
turtle.seth(0)
turtle.fd(100)
turtle.seth(-90)
turtle.fd(100)
turtle.seth(180)
turtle.fd(90)
turtle.seth(90)
turtle.fd(90)
turtle.seth(0)
turtle.fd(80)
turtle.seth(-90)
turtle.fd(80)
turtle.seth(180)
turtle.fd(70)


turtle.seth(90)
turtle.fd(70)
turtle.seth(0)
turtle.fd(60)
turtle.seth(-90)
turtle.fd(60)
turtle.seth(180)
turtle.fd(50)
turtle.seth(90)
turtle.fd(50)
turtle.seth(0)
turtle.fd(40)
turtle.seth(-90)
turtle.fd(40)
turtle.seth(180)
turtle.fd(30)


turtle.seth(90)
turtle.fd(30)
turtle.seth(0)
turtle.fd(20)
turtle.seth(-90)
turtle.fd(20)
turtle.seth(180)
turtle.fd(10)
turtle.seth(90)
turtle.fd(10)
turtle.seth(0)

29题代码:
import turtle
turtle.setup(700,600,200,200)
turtle.pensize(30)
turtle.pencolor("green")
turtle.penup()
turtle.fd(-250)
turtle.seth(-40)
turtle.pendown()
for i in range(4):
    turtle.circle(40,80)
    turtle.circle(-40,80) 
turtle.circle(40,40)
turtle.fd(40)
turtle.circle(40,180)
turtle.fd(80)

 

第一次作业

标签:body   nbsp   eth   class   imp   enc   import   style   span   

原文地址:https://www.cnblogs.com/hf77521/p/8625337.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!