在python中使用random.gauss高斯隨機數生成器生成高斯函數,具體方法如下:import randomdef trunc_gauss(mu, sigma, bottom, top): //...