str='F:\\code\\matlab\\face\\face'; %图像存放路径 S=0.0;%行向量 dis=zeros(1,100,'double');%每一个人脸跟平均脸的距离 b=zeros(2700,400,'double');%人脸向量矩阵 for i=1:2700 B=imread([str,num2str(i),'.bmp']); %依次读取每一幅图像 m = size(B, 3); if m==1 I = B; else I=rgb2gray(B); end %在此处进
将一份一亿多条数据的csv文件等分为10份,代码如下所示:
import pandas as pd
data = pd.read_csv('C:\\Users\\PycharmProjects\\SplitData\\data\\UserBehavior.csv') # 路径则根据个人存放项目文件的习惯
num = 0
for i in range(1, 11):
start = num
num = num + int(data.shape[0] / 10)
file = data.iloc[