26
2023-03-20 18:36 作者:某科學(xué)的無名少女 | 我要投稿
import turtle turtle.bgpic("desert.gif") turtle.tracer(0) pen = turtle.Pen() # 空投箱 turtle.addshape("guitar.gif") pen.shape("guitar.gif") pen.penup() pen.goto(0,400) pen.pendown() # 畫筆準備 pen.pencolor("coral") pen.left(90) while pen.ycor()>-200: ??pen.forward(100) ??for i in range(150): ????pen.pensize(i*1.5) ????pen.forward(1) ??pen.pensize(1) ??pen.backward(250) ??turtle.update() ??pen.backward(1) ??pen.clear()
標(biāo)簽: