如下所示:
# -*- coding: utf-8 -*-
import os
import numpy as np
import pandas as pd
import h5py
import pylab
import matplotlib.pyplot as plt
trainpath = str('C:/Users/49691/Desktop/数据集/train/')
testpath = str('C:/Users/49691/Desktop/数据集/test/')
n_tr = len(os.listdir(trainpath))
print('num of training fi
1