opmltomm.py 文件源码

python
阅读 19 收藏 0 点赞 0 评论 0

项目:OPMLtoMM 作者: adxsoft 项目源码 文件源码
def __init__(self):
        self.nodetree = []          #tree that will contain the elements for the .mm output file 
        self.nodetree.append("")    #initialise tree
        self.previous_level = 0     #initialise depth control

    # def open(self, inputfile):
    #     """ get opml data and load into ElementTree tree """
    #     if inputfile.endswith('.opml'):
    #         try:
    #             # self.tree = ET.parse(inputfile)
    #             return self.tree
    #         except:
    #             print "Cannot open file "+inputfile+'\n' \
    #                   "File may not exist or file may not be a valid xml file\n" \
    #                   "\nUSAGE\n"
    #             closedown()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号