turtle库基础练习

1.

 

 

 

import turtle
 turtle.circle(10)
 turtle.circle(30)
 turtle.circle(40)

2.

turtle.circle(10)
 turtle.up()
 turtle.goto(0,-20)
 turtle.down()
 turtle.circle(30)

3.

import turtle
for i in range(5)
turtle.forward(30)
turtle.right(144)

4.

import turtle
turtle.color('yellow')
turtle.begin_fill()
turtle.fillcolor('yellow')
for i in range(5):    
turtle.forward(50)
turtle.right(144)

turtle.end_fill()

posted @ 2017-09-08 21:50  会搓火球的单身狗  阅读(119)  评论(0编辑  收藏  举报