rstweb_reader.py 文件源码

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

项目:rstviewer 作者: arne-cl 项目源码 文件源码
def read_relfile(filename):
    f = codecs.open(filename, "r", "utf-8")
    rels = {}
    for line in f:
        if line.find("\t") > 0:
            rel_data = line.split("\t")
            if rel_data[1].strip() == "rst":
                rels[rel_data[0].strip()+"_r"]="rst"
            elif rel_data[1].strip() == "multinuc":
                rels[rel_data[0].strip()+"_m"]="multinuc"

    return rels
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号