python 小猪佩奇画法.docxVIP

  • 3
  • 0
  • 约3.22千字
  • 约 7页
  • 2022-10-29 发布于江苏
  • 举报
# coding:utf-8 import turtle as t t.pensize(4) t.hideturtle() t.colormode(255) t.color((255,155,192),pink) t.setup(840,500) t.speed(10) #鼻子t.pu() t.goto(-100,100) t.pd() t.seth(-30) t.begin_fill() a=0.4 for i in range(120): if 0=i30 or 60=i90: a=a+0.08 t.lt(3) #向左转 3 度t.fd(a) #向前走a 的步长 else: a=a-0.0

文档评论(0)

1亿VIP精品文档

相关文档