网站首页 站内搜索

搜索结果

查询Tags标签: outfile1,共有 1条记录
  • python .txt文件奇数偶数行分开保存

    def fenhang(infile,outfile,outfile1):infopen = open(infile,r,encoding=utf-8)outopen = open(outfile,w,encoding=utf-8)outopen1 = open(outfile1, w, encoding=utf-8)lines = infopen.readlines()i = 0for line in lines:i += 1if i % 2 == 0:outopen.write(line)el…

    2022/2/20 21:00:41 人评论 次浏览
扫一扫关注最新编程教程