import math
import numpy as np
import h5py
import matplotlib.pyplot as plt
import scipy
from PIL import Image
from scipy import ndimage
import tensorflow as tf
from tensorflow.python.framework import ops
from cnn_utils import *
import math
让python导入数学模块,使python支持一系列数学函数和常量
import numpy as np
NumPy提供了两种基本的对象:ndarray(N-dimensional array object)和 ufunc(universal function object
支持大量的维度数组与矩阵运算,此外也针对数组运算提供大量的数学函数库。
比python本身嵌套列表要方便。
import h5py
An HDF5 file is a container for two kinds of objects: datasets, which are array-like collections of data, and groups, which are folder-like containers that hold datasets and other groups.
HDF5文件是两种对象的容器:数据集(类数组的数据集合)和组(类文件夹的容器,包含数据集和其他组)。
import matplotlib.pyplot as plt
画图
import sc