#佩奇

python 用turtle 画小猪佩奇

fromturtleimport*defnose(x,y):#鼻子penup()#提起笔goto(x,y)#定位pendown()#落笔,开始画setheading(-30)#将乌龟的方向设置为to_angle/为数字(0-东、90-北、180-西、270-南)begin_fill()#准备开始填充图形a=0.4for...
代码星球 代码星球·2020-08-09