下面是我的代码。
def __init__(self):
self.node=[]
self.fronts=[]
self.GoalNode=['1','2','3','4','5','6','7','8','0']
self.StartNode=['1','2','3','4','5','6','7','8','0']
self.PreviousNode=[]
self.prePreviousNode=[]
self.PreviousCount=1
def Solve(self):
self.shufler(10)
......
def shufler(self):
while True:
node=self.StartNode
以下是我收到的错误消息:
File "E:\Zoe's file\CMPT 310\Assign 2\astart8puzzle\AI8puzzle\py8puzzel.py", line 18, in Solve
self.shufler(10)
TypeError: shufler() takes exactly 1 positional argument (2 given)
我不明白我在哪里给出了 2 个论点。