为您找到相关结果48个
Python读取pdf文件的简单代码示例_python_脚本之家
plt.rcParams['axes.unicode_minus']=False #用pdf文件解析器读取文件 with pdfplumber.open('中华文化.pdf') as f: #用for循环读取文件中的每一页 for page in f.pages: text = page.extract_text() txt_f = open(r'中华文化.txt', mode='a', encoding='utf-8') # 创建txt文件 txt_f.write(te...
www.jb51.net/python/315737m...htm 2024-5-20
Python画图高斯分布的示例_python_脚本之家
plt.title('PDF in Horizontal Direction', fontsize=22) plt.xticks(fontsize=22) plt.yticks(fontsize=22) axes=plt.subplot(111) axes.set_xticks([-800,-400,0,400,800]) axes.set_yticks([0,0.001,0.002,0.0030]) plt.plot(x, gaussian(120, x,0),"b-", linewidth=6) ...
www.jb51.net/article/1650...htm 2024-5-14
python-numpy-指数分布实例详解_python_脚本之家
# Plot the PDF and label axes _ = plt.hist(inter_nohitter_time, bins=50, normed=True, histtype='step') _ = plt.xlabel('Games between no-hitters') _ = plt.ylabel('PDF') # Show the plot plt.show() 指数分布的拟合 # Create an ECDF from real data: x, y ...
www.jb51.net/article/175881.htm 2019-12-7