- 博客(2)
- 收藏
- 关注
原创 2020-10-08
from turtle import *fillcolor('red')begin_fill()while True: forward(200) right(114) if abs(pos()) < 1: breakend_fill()
2020-10-08 14:14:09 40
原创 python turtle画小猪佩奇
from turtle import*def nose(x,y):#鼻子penup()#提起笔goto(x,y)#定位pendown()#落笔,开始画setheading(-30)#将乌龟的方向设置为to_angle/为数字(0-东、90-北、180-西、270-南)begin_fill()#准备开始填充图形a=0.4for i in range(120):if 0<=i<30 or 60<=i<90:a=a+0.08left(3) #向左转3度forward
2020-10-06 12:15:10 106
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人