#FiveStar.py(五角星的绘制) import turtle #导入海龟画图库 turtle.pensize(5) #设置画笔大小为5像素 turtle.pencolor('blue') #设置画笔颜色 turtle.write('202209307张康伟') turtle.fd(200)#海龟画笔向前200像素 turtle.right(144)#向右旋转144度 turtle.fd(200)#海龟画笔向前200像素 turtle.right(144)#向右旋转144度 turtle.fd(200)#海龟画笔向前200像素 turtle.right(144)#向右旋转144度 turtle.fd(200)#海龟画笔向前200像素 turtle.right(144)#向右旋转144度 turtle.fd(200)#海龟画笔向前200像素 turtle.right(144)#向右旋转144度
用python进行五角星绘制
最新推荐文章于 2024-07-12 16:16:27 发布