赞
踩
初学python,第一次尝试使用turtle画爱心~
import turtle turtle.pensize(5) turtle.pencolor("red") turtle.left(90) turtle.circle(50,180) turtle.fd(30) turtle.left(30) turtle.fd(50) turtle.goto(0,-120) turtle.up() turtle.goto(0,0) turtle.down() turtle.seth(90) turtle.circle(-50,180) turtle.fd(30) turtle.right(30) turtle.fd(50) turtle.goto(0,-120)
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。