Python精灵模块的stop指令

所有命令 单独命令 屏幕命令 角色命令

角色命令 >> Python精灵模块的stop指令

简介:停止播放音乐的方法。
例子:
from sprites import Screen,Sprite,showinfo

screen = Screen()
screen.setup(480,360)

bug = Sprite(pos=(120,50))
bug.play('lovelychild.wav')
bug.wait(2)
bug.stop()  # 停止播放音乐
screen.mainloop()

writed by lixingqiu 关注"异编程"微信公众号,获取更多关于Python精灵模块的咨讯: