尝试在 Python 中使用游戏引擎进行文本冒险。无论如何,我不断收到此错误消息。TypeError: module.__init__() takes at most 2 arguments (3 given)
这是我的代码:
from engine import game
from engine import event
from engine import place
class TextAdventureGame(game):
def __init__(self):
super(TextAdventureGame, self).__init__()
self.introduction = ('''Welcome to Can You Escape text adventure game.
You wake up in a dark room and you have no idea where you are.''')
为什么会出现这个错误?
class TextAdventureGame(game):
TypeError: module.__init__() takes at most 2 arguments (3 given)