小编Lea*_*eav的帖子

抽象在这种情况下意味着什么?

我需要一些帮助来理解python概念.

class TilePuzzleProblem(search.Problem):
""" This class is the class for the NxN - blanks tile puzzle problem """

    def __init__(self, N, blanks, initial, goal):
        """ Initialize """
        search.Problem.__init__(self, initial, goal)
        self.N = N
        self.blanks = blanks

    def successor(self, state):
        """ Generate the successors of the given state. Returns a list of (move, successor) pairs"""
        abstract

    def h(self, node):
        abstract
Run Code Online (Sandbox Code Playgroud)

目前代码挂在abstract函数的一部分h(...),但我不知道是什么abstract意思,因此无法理解问题是什么.

python abstract

2
推荐指数
2
解决办法
1785
查看次数

标签 统计

abstract ×1

python ×1