我可以用以下代码给你画一个爱心:
import turtle
turtle.shape("turtle")
turtle.speed(10)
turtle.color("red")
turtle.begin_fill()
for i in range(2): turtle.forward(200) turtle.right(150) turtle.forward(200) turtle.right(210)
turtle.end_fill()
turtle.done()
我可以用以下代码给你画一个爱心:
import turtle
turtle.shape("turtle")
turtle.speed(10)
turtle.color("red")
turtle.begin_fill()
for i in range(2): turtle.forward(200) turtle.right(150) turtle.forward(200) turtle.right(210)
turtle.end_fill()
turtle.done()