python类__init__()的实例源码

utilities.py 文件源码 项目:pandachaika 作者: pandabuilder 项目源码 文件源码 阅读 30 收藏 0 点赞 0 评论 0
def __init__(self) -> None:
        HTMLParser.__init__(self)
        self.galleries: typing.Set[str] = set()
        self.stop_at_favorites: int = 0
utilities.py 文件源码 项目:pandachaika 作者: pandabuilder 项目源码 文件源码 阅读 26 收藏 0 点赞 0 评论 0
def __init__(self) -> None:
        HTMLParser.__init__(self)
        self.empty_search = 0
utilities.py 文件源码 项目:pandachaika 作者: pandabuilder 项目源码 文件源码 阅读 29 收藏 0 点赞 0 评论 0
def __init__(self) -> None:
        HTMLParser.__init__(self, convert_charrefs=True)
        self.torrent_link = ''
        self.stop_at_found: int = 0
        self.found_non_final_gallery: int = 0
        self.parent_gallery: str = ''
        self.found_parent_gallery: int = 0
        self.found_gallery_link: int = 0
        self.non_final_gallery: str = ''
utilities.py 文件源码 项目:pandachaika 作者: pandabuilder 项目源码 文件源码 阅读 24 收藏 0 点赞 0 评论 0
def __init__(self) -> None:
        HTMLParser.__init__(self, convert_charrefs=True)
        self.torrent = ''
        self.found_seed_data = 0
        self.found_posted_data = 0
        self.posted_date = ''
        self.seeds = 0
utilities.py 文件源码 项目:pandachaika 作者: pandabuilder 项目源码 文件源码 阅读 21 收藏 0 点赞 0 评论 0
def __init__(self) -> None:
        HTMLParser.__init__(self)
        self.archive = ''
prettytable.py 文件源码 项目:hakkuframework 作者: 4shadoww 项目源码 文件源码 阅读 32 收藏 0 点赞 0 评论 0
def __init__(self, **kwargs):
        HTMLParser.__init__(self)
        self.kwargs = kwargs
        self.tables = []
        self.last_row = []
        self.rows = []
        self.max_row_width = 0
        self.active = None
        self.last_content = ""
        self.is_last_row_header = False
oth_pxfilter.py 文件源码 项目:MCSManager-fsmodule 作者: Suwings 项目源码 文件源码 阅读 21 收藏 0 点赞 0 评论 0
def __init__(self, allows = []):
        HTMLParser.__init__(self)
        self.allow_tags = allows if allows else self.allow_tags
        self.result = []
        self.start = []
        self.data = []
wiktionaryparser.py 文件源码 项目:ankimaker 作者: carllacan 项目源码 文件源码 阅读 18 收藏 0 点赞 0 评论 0
def __init__(self, lang):
        self.lang = lang # lang of the word we are looking up
        self.in_lang = False # flag: are we in the appropriate language?
        self.getting_defs = False # flag: are we collecting definitions?
        self.pos = "" # part of speech we are in
        self.trans = {} # each key is the pos, each entry the translations
        HTMLParser.__init__(self)
_htmlparser.py 文件源码 项目:ShelbySearch 作者: Agentscreech 项目源码 文件源码 阅读 32 收藏 0 点赞 0 评论 0
def __init__(self, *args, **kwargs):
        HTMLParser.__init__(self, *args, **kwargs)

        # Keep a list of empty-element tags that were encountered
        # without an explicit closing tag. If we encounter a closing tag
        # of this type, we'll associate it with one of those entries.
        #
        # This isn't a stack because we don't care about the
        # order. It's a list of closing tags we've already handled and
        # will ignore, assuming they ever show up.
        self.already_closed_empty_element = []
_htmlparser.py 文件源码 项目:ShelbySearch 作者: Agentscreech 项目源码 文件源码 阅读 23 收藏 0 点赞 0 评论 0
def __init__(self, *args, **kwargs):
        if CONSTRUCTOR_TAKES_STRICT and not CONSTRUCTOR_STRICT_IS_DEPRECATED:
            kwargs['strict'] = False
        if CONSTRUCTOR_TAKES_CONVERT_CHARREFS:
            kwargs['convert_charrefs'] = False
        self.parser_args = (args, kwargs)
login.py 文件源码 项目:campus-network-login 作者: xiadingZ 项目源码 文件源码 阅读 28 收藏 0 点赞 0 评论 0
def __init__(self):
        HTMLParser.__init__(self)
        self.count = 0
        self.id = None
PageTest.py 文件源码 项目:Weeds 作者: seamile 项目源码 文件源码 阅读 29 收藏 0 点赞 0 评论 0
def __init__(self, url, with_subdomain=False):
        HTMLParser.__init__(self)
        self.protocol, self.domain, self.path = self.parse_url(url)
        self.with_subdomain = with_subdomain
        self.links = set()
toc.py 文件源码 项目:veripress 作者: veripress 项目源码 文件源码 阅读 38 收藏 0 点赞 0 评论 0
def __init__(self, level):
        """Initialize attributes."""
        self.level = level  # header level of the element, e.g. 1 for <h1>, 2 for <h2>, etc
        self.id = ''  # anchor id (in-page link), used in 'id' and 'href' attribute of 'a' tag
        self.text = ''  # pure text content of header tag, e.g. 'Title' for '<h1>Title</h1>'
        self.inner_html = ''  # inner HTML
        self.father = None  # point to the direct father node
        self.children = []  # elements with lower levels that directly follows the current elem
_htmlparser.py 文件源码 项目:GUIYoutube 作者: coltking 项目源码 文件源码 阅读 22 收藏 0 点赞 0 评论 0
def __init__(self, *args, **kwargs):
        HTMLParser.__init__(self, *args, **kwargs)

        # Keep a list of empty-element tags that were encountered
        # without an explicit closing tag. If we encounter a closing tag
        # of this type, we'll associate it with one of those entries.
        #
        # This isn't a stack because we don't care about the
        # order. It's a list of closing tags we've already handled and
        # will ignore, assuming they ever show up.
        self.already_closed_empty_element = []
_htmlparser.py 文件源码 项目:GUIYoutube 作者: coltking 项目源码 文件源码 阅读 24 收藏 0 点赞 0 评论 0
def __init__(self, *args, **kwargs):
        if CONSTRUCTOR_TAKES_STRICT and not CONSTRUCTOR_STRICT_IS_DEPRECATED:
            kwargs['strict'] = False
        if CONSTRUCTOR_TAKES_CONVERT_CHARREFS:
            kwargs['convert_charrefs'] = False
        self.parser_args = (args, kwargs)
utils.py 文件源码 项目:zhihu-oauth 作者: 7sDream 项目源码 文件源码 阅读 20 收藏 0 点赞 0 评论 0
def __init__(self):
        HTMLParser.__init__(self)
        self._level = 0
        self._last = ''
        self._in_code = False
        self._prettified = [_BASE_HTML_HEADER]
utils.py 文件源码 项目:zhihu-oauth 作者: 7sDream 项目源码 文件源码 阅读 18 收藏 0 点赞 0 评论 0
def __init__(self, value=None):
        self._value = value
scrapers.py 文件源码 项目:softuni-course-calendar-scraper 作者: Enether 项目源码 文件源码 阅读 22 收藏 0 点赞 0 评论 0
def __init__(self):
        HTMLParser.__init__(self)
        self.lectures = 0
scrapers.py 文件源码 项目:softuni-course-calendar-scraper 作者: Enether 项目源码 文件源码 阅读 29 收藏 0 点赞 0 评论 0
def __init__(self):
        HTMLParser.__init__(self)
prettytable.py 文件源码 项目:My-Web-Server-Framework-With-Python2.7 作者: syjsu 项目源码 文件源码 阅读 32 收藏 0 点赞 0 评论 0
def __init__(self, **kwargs):
        HTMLParser.__init__(self)
        self.kwargs = kwargs
        self.tables = []
        self.last_row = []
        self.rows = []
        self.max_row_width = 0
        self.active = None
        self.last_content = ""
        self.is_last_row_header = False


问题


面经


文章

微信
公众号

扫码关注公众号