【发布时间】:2023-03-19 16:02:01
【问题描述】:
我有这段代码我正在玩,但不知道如何调用它?
class Slide:
def __init__(self, pictureFile, soundFile):
self.picture - makePicture(pictureFile)
self.sound = makeSound(soundFile)
def show(self):
show (self.picture)
blockingPlay(self.sound)
我不能只做 pictureFile = "xxxx.jpg", soundFile = "xxxx.wav" 然后去 show(pictureFile, soundFile) 吗?
【问题讨论】: