我编写了一个类,我将使用它作为基类,允许其他类扩展这个类。import requestsfrom BeautifulSoup import BeautifulSoup
''' Base Class will be extended by other classes'''
self.url = url
def
我正在写一些可以在Python3中工作的代码,但不能在Python2中工作。_private_stuff)TypeError: unbound method <lambda>() must be called with我之所以这样做,是因为我需要传递私有信息,我不想让最终用户暴露给任何扩展我的类的人。