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)
评论列表
文章目录