基本信息
源码名称:将x|||y格式的文本拆分成x和y两个文本
源码大小:4.96KB
文件格式:.py
开发语言:Python
更新时间:2021-06-23
   友情提示:(无需注册或充值,赞助后即可获取资源下载链接)

     嘿,亲!知识可是无价之宝呢,但咱这精心整理的资料也耗费了不少心血呀。小小地破费一下,绝对物超所值哦!如有下载和支付问题,请联系我们QQ(微信同号):813200300

本次赞助数额为: 2 元 
   源码介绍

将每行为  x ||| y 格式的文本拆分成两个文本x和y,保证行数一样

例如:将 x.zh2en 拆分成 x.zh 和 x.en

        xy = fin_xy.readline()
        xy_end = ( not xy or xy == '' )
        if xy_end:
            wlog('Touch the file end.')
            break # finish the file reading

        n_before = 1
        if n_before % log_interval == 0: wlog(n_before)
        #print([ord(c) for c in t])
        #print(t)
        xy_strip = xy.strip()
        xy_strip = xy_strip.strip('\t')