from sprites import * screen = Screen() screen.setup(480,360) screen.delay(10) s = Sprite() s.color('red') s.width(5) s.pendown() c = 0 for x in range(4): for d in range(20): screen.save('res/'+ str(c) + ".png") # 保存当前帧图 s.fd(5) c += 1 for a in range(10): screen.save('res/'+ str(c) + ".png") # 保存当前帧图 c += 1 s.right(9) s.penup()
李兴球
李兴球的博客是Python创意编程原创博客