阅读背景:

python实现double word字符串转double byte字符串_re_call的博客

来源:互联网 

先上代码: 

import sys
fid = open(sys.argv[1],'r')

out_fid = open('split.txt','w')

for dt in fid.readlines():
    print(dt)
    for n in range(0,8):
        s_tmp = dt[14-2*n:16-2*n]
        out_fid.write(s_tmp+"\n")
fid.close()
out_fid.close()import sys
fid = open(sys.argv[1],'r')



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: