- 博客(3)
- 资源 (1)
- 收藏
- 关注
原创 用Python找出两个文本之间的共同项
在用caffe进行训练时,有时候发现Label文件中所含有的图片名字中,在图片库中竟然找不到图片,当然会导致训练出错。所以用Python写了个脚本来解决这样的问题。import sysimport osimport os.path as ospdef filter(path): file=open(osp.join(path,'label.txt')) wh
2017-07-29 22:23:27
1136
原创 用python对两个文本进行相同项筛选
import osimport os.path as ospdef filter(path): file_path = osp.join(path, 'index.txt') if osp.exists(file_path): return file_path index_file = open(file_path, 'a+') if
2017-07-27 18:06:31
4124
转载 C++遍历文件夹的所有文件
#include "stdafx.h" #include #include #include #include #include #include #include using namespace std; #define MAX_PATH 1024 //最长路径长度 /*-----------------
2017-07-24 22:30:44
228
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人