冰墩墩
局部代码实现:
t.hideturtle()# 设置速度t.title("Bing Dwen Dwen")# t.delay(2) # 提早t.speed(200) # 速度# turtle.tracer(False)# 双耳# 左耳t.penup()t.goto(-150, 200)t.setheading(160)t.begin_fill()t.pendown()t.circle(-30, 230)t.setheading(180)t.circle(37, 90)t.end_fill()# 右耳t.penup()t.goto(60, 200)t.setheading(20)t.begin_fill()t.pendown()t.circle(30, 230)t.setheading(0)t.circle(-37, 90)t.end_fill()
成果:
雪容融
局部代码实现:
pm=Screen() #新建屏幕对象pm.delay (2) #设定屏幕延时为0pm.title("雪容融")turtle.hideturtle()turtle.speed(2) # 速度# 大头的圈圈turtle.penup()turtle.goto(-145, 135)turtle.pensize(10)turtle.pencolor("#BB3529")turtle.fillcolor("#DA2D20")turtle.begin_fill()turtle.pendown()turtle.setheading(45)turtle.circle(-150, 45)turtle.forward(80)turtle.circle(-150, 180)turtle.forward(80)turtle.circle(-150, 135)turtle.end_fill()
成果:
源码在公众号Python小二后盾回复冰雪获取~