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

064turtle作业

时间:2017-09-08 11:58:18      阅读:100      评论:0      收藏:0      [点我收藏+]

标签:for   etl   nbsp   作业   rtl   red   down   yellow   color   

1.import turtle

turtle.circle(20)

turtle.circle(30)

turtle.circle(40)

2.

import turtle
>>> turtle.circle(20)
>>> turtle.up()
>>> turtle.goto(0,-20)
>>> turtle.down()
>>> turtle.circle(40)

3.import turtle

turtle.forward(50)
>>> turtle.left(144)
>>> turtle.forward(50)
>>> turtle.left(144)
>>> turtle.forward(50)
>>> turtle.left(144)
>>> turtle.forward(50)
>>> turtle.left(144)
>>> turtle.forward(50)

4.

import turtle

turtle.bgcolor(‘red‘)

tuetle.color(‘yellow‘)

turtle.begin_fiil()

turtle.forward(50)
>>> turtle.left(144)
>>> turtle.forward(50)
>>> turtle.left(144)
>>> turtle.forward(50)
>>> turtle.left(144)
>>> turtle.forward(50)
>>> turtle.left(144)
>>> turtle.forward(50)

turtle.end_fiil()

 

064turtle作业

标签:for   etl   nbsp   作业   rtl   red   down   yellow   color   

原文地址:http://www.cnblogs.com/-064/p/7493143.html

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