0
点赞
收藏
分享

微信扫一扫

python 分行读取txt文件

求索大伟 2022-03-19 阅读 199
python

result=[]
with open(“AhCustomSCDResult.txt”,encoding=‘utf-8’) as f:
for line in f:
templine=line.split(’|’)
result.append(templine[2:])

举报

相关推荐

0 条评论