摘要: ```import numpy as npimport matplotlib.pyplot as pltfrom matplotlib import style plt.style.use('dark_background')for i in range(2): if i ==0: labels = 'A', 'B', 'C' fracs = [20, 30, 5... 阅读全文
posted @ 2019-11-29 21:18 随想LJG 阅读(1347) 评论(0) 推荐(0) 编辑
摘要: ``` pylab_examples example code: multipage_pdf.py """ This is a demo of creating a pdf file with several pages, as well as adding metadata and annotations to pdf files. """ import datetime import nump 阅读全文
posted @ 2019-11-29 21:05 随想LJG 阅读(4090) 评论(1) 推荐(0) 编辑
摘要: 方法1:使用pdfkit库 方法2:使用一个网站 https://nbviewer.jupyter.org 比如github上是: https://github.com/ctgk/PRML/blob/master/notebooks/ch01_Introduction.ipynb 那拼接到 http 阅读全文
posted @ 2019-10-17 20:27 随想LJG 阅读(342) 评论(0) 推荐(0) 编辑
摘要: "转载1翻译版" "转载2英文版" 阅读全文
posted @ 2019-09-23 11:12 随想LJG 阅读(415) 评论(0) 推荐(0) 编辑
摘要: 转载:https://blog.csdn.net/qq_27825451/article/details/82698929 对于np.choose的理解直接官网上的例子即可。 nonzero详解:https://blog.csdn.net/roler_/article/details/4239539 阅读全文
posted @ 2019-08-27 15:06 随想LJG 阅读(690) 评论(0) 推荐(0) 编辑
摘要: Numerical methods in enginering with python3 (1) 1Numpy 库 1.1Numpy中的矩阵函数 1. np.diagonal(A) 返回由A中的主对角元素组成的一维矩阵 2. np.diagonal(A,1) 返回由A中的第一副对角元素组成的一维矩阵 阅读全文
posted @ 2019-08-25 14:13 随想LJG 阅读(275) 评论(0) 推荐(0) 编辑
摘要: 1、参考资料 "B站上学习视频" "Jupyter 安装与使用" 2、安装 在cmd窗口中输入(创建的文件会再当前的目录下):pip install jupyter 然后输入:jupyter notebook 3、查看快捷键: 按‘h’键 阅读全文
posted @ 2019-07-13 16:03 随想LJG 阅读(233) 评论(0) 推荐(0) 编辑
摘要: scrapy1.6中文文档 "scrapy1.6中文文档" "scrapy中文文档" Scrapy框架 下载页面 解析页面 并发 深度 安装 "scrapy学习教程" 如果安装了anconda,可以在anaconda prompt中使用conda install scrapy 也可以使用pychar 阅读全文
posted @ 2019-07-09 20:26 随想LJG 阅读(819) 评论(0) 推荐(0) 编辑
摘要: 这几天,被python包与模块的导入问题,折磨的不行,以前想的很简单,其实不然,经查资料研究,特总结如下: 基本注意点 0. 模块:一般指一个py文件;包:含有许多py文件的文件夹,含有 或不含有(Python3中允许)__init__文件。 1. 凡是在导入时带点的,点的左边都必须是一个包 (im 阅读全文
posted @ 2019-07-09 13:39 随想LJG 阅读(3634) 评论(1) 推荐(0) 编辑
摘要: 函数:urllib.urlretrieve(url[, filename[, reporthook[, data]]]) 参数说明: url:外部或者本地url ,url中不要含有中文,好像会出错。filename:指定了保存到本地的路径(如果未指定该参数,urllib会生成一个临时文件来保存数据) 阅读全文
posted @ 2019-06-22 10:29 随想LJG 阅读(10061) 评论(0) 推荐(0) 编辑