我有一個Python Web應用程序,我想定義一個通用的類或函數來處理網頁,並從特定的頁面實例的更具體的類中調用它。 錯誤: metaclass conflict: the metaclass of a derived class must be a (non-strict) subclass of the metaclasses of all its bases 我已經檢查了所有的StackOv
我正在寫一個包含幾個嵌套類小Python應用程序,如下面的例子: class SuperBar(object):
pass
class Foo(object):
NAME = 'this is foo'
class Bar(SuperBar):
MSG = 'this is how Bar handle stuff'
class Anot