引入所需的包 from scipy import stats import numpy as np 注:ttest_1samp, ttest_ind, ttest_rel均进行双侧检验 H0:μ=μ0 <