用户:
wolololo查看:0 回复:0 评论:0 创建时间:2023-04-02T19:26:13
【作品展示】

【作品介绍】
【作品源代码】
import time
import pgzrun
TITLE = '动画效果'
HEIGHT = 600
WIDTH = 600
gs = [Actor('1'), Actor('2'), Actor('3'), Actor('4'), Actor('5')]
number = len(gs)
xuhao = 0
x = 300
y = 300
for __count in range(number):
gs[xuhao].x = x
gs[xuhao].y = y
xuhao += 1
def draw():
screen.fill('Lightblue')
gs[xuhao].draw()
def update():
global xuhao
# xuhao +=
xuhao = (xuhao + 1)
if (xuhao >= 5):
xuhao = 0
time.sleep(0.1)
pgzrun.go()
【提示】
部分含有Python第三方库相关内容的作品,在海龟编辑器网页端无法运行哦!如遇到这种情况,可以打开下面的链接,下载海龟编辑器客户端:
https://python.codemao.cn