snn construct a spiking neural network function This project is used to construct a spiking neural network to complete classification task on MNIST dataset.