赞
踩
实现效果
#导入turtle库 import turtle #导入turtle画笔 turtle.shape('turtle') # turtle.speed(0) turtle.pencolor('pink')#线条的颜色 length = 150;#定义变量 x = 70; y = 220; #面部 turtle.fillcolor('pink')#填充颜色为粉色 turtle.begin_fill()#代码开始填充的地方 #绘制一个length为150的圆。也就是圆的半径为150 turtle.circle(length) turtle.end_fill()# 代码结束填充的地方 #耳朵 turtle.penup() turtle.goto(-130,220) turtle.pendown() turtle.fillcolor('pink') turtle.begin_fill() turtle.circle(40) turtle.end_fill() turtle.penup() turtle.goto(130
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。