# -*- coding: utf-8 -*-
"""
Created on Mon Nov 1 20:20:05 2021
@author: 86158
"""
import numpy as np
from scipy.stats import normaltest
v = np.random.normal(size=100)
print(normaltest(v))
结果:
NormaltestResult(statistic=0.2786470828038562, pvalue=0.8699465192043321)