#!/usr/bin/python
# -*- coding: UTF-8 -*-
# 文件名:test.py
import os
fb=open ("a.txt","w+")
with open("at.txt",'r') as alc:
i=0
for line in alc:
print(line.strip())
line=line.strip()
line+=";%d"%i+"\n"
print(line.strip())
fb.write(line)
i+=1
这是人脸库:
https://github.com/opencv/opencv_contrib
https://blog.csdn.net/sinat_37185987/article/details/82956367