This is a sample Python script.
Press Shift+F10 to execute it or replace it with your code.
Press Double Shift to search everywhere for classes, files, tool windows, actions, and settings.
def print_hi(name):
# Use a breakpoint in the code line below to debug your script.
print(f’Hi, {name}’) # Press Ctrl+F8 to toggle the breakpoint.
Press the green button in the gutter to run the script.
if name == ‘main’:
print_hi(‘PyCharm’)
See PyCharm help at https://www.jetbrains.com/help/pycharm/
#球磨个数在标准正态分布里的z值(mean为0,standard deviation为1)
from scipy.stats import norm
from pylab import plot,fill_between,show,text,netrc
from numpy array, linspace, zeros#准备好你要用的东西
alpha=array([-1,1,-2,2,-3,3])
x=norm.cdf(alpha,0,1)#该点左边在正态分布曲线下的面积
print(‘z分别为’,x)
y=linspace(-3,3,100); z=norm.cdf(y,0,1)
rc(‘font’,size=16); rc(‘text’,usetex=True)
plot(y,z)
y2=linspace(x[-1],4,100); Z2=norm.cdf(y2);
y1=[0]*len[x2]
fill_between(y2,y1,z2,color=‘r’)#补齐点