turtle 画图

import turtle 
turtle.setup(850,850,300,300)
turtle.penup()
turtle.fd(-250)
turtle.pendown()
turtle.pensize(30)
turtle.pencolor("red")
turtle.seth(-40)
for i in range(9):
    turtle.circle(50,100)
    turtle.circle(-50,60)
turtle.circle(40,80/2)
turtle.fd(40)
turtle.circle(16,180)
turtle.fd(40*2/3)
turtle.done()

你可能感兴趣的:(学习笔记)