通过控制“海龟”,画出简易小蛇。代码如下:#PythonDraw.pyimport turtleturtle.setup(650, 350, 200, 200)turtle.penup()turtle.fd(-250)turtle.pendown ()turtle.pensize(25)turtle.pencolor("grey") #选择自己喜欢的颜色turtle.seth(-40)for i in range (2): turtle.circle (40, 80)
python
2023-10-28
33 点赞
0 评论
50 浏览