我使用了以下代码,但不确定为什么它不起作用。
from PythonCard import model
playSound = 1
class MainWindow(model.Background):
pass
app = model.Application(MainWindow)
app.MainLoop()
if playSound == 1:
s = Sound()
s.read('start.wav')
s.play
playSound = 0