
python
码基
码基
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
用Python生成正态分布随机数组
几个函数用来生成、存储、保留生态分布随机数组 import numpy as np #导入numpy矩阵计算包 import matplotlib.pyplot as plt #绘图包 global i i = 1 #声明并初始化全局变量 def genNormalDistributionData(mean, cov, num): global i #指明使用全局变量i,i用来...原创 2019-06-13 09:31:23 · 22319 阅读 · 0 评论 -
python设计哲学
转载至博客园https://www.cnblogs.com/xuchunlin/p/6986247.html Beautiful is better than ugly. 优美胜于丑陋 Explicit is better than implicit. 明了胜于晦涩 Simple is better than complex. 简单胜过复杂 Complex is better than compl...转载 2019-06-22 09:17:49 · 326 阅读 · 0 评论 -
Spark: The Definitive Guide:Chapter 15. How Spark Runs on a Cluster(Spark是如何在集群上运行的)
Spark权威指南:第15章 Spark是如何在集群上运行的 Thus far in the book, we focused on Spark’s properties as a programming interface. We have discussed how the structured APIs take a logical operation, break it up into a...翻译 2019-07-01 22:52:26 · 410 阅读 · 0 评论 -
python科学计算的几个例子
python解常微分方程的步骤如下: 将计算区间分为n个小段,在每一小段上将求解的曲线作为直线处理; 将一个n阶常微分方程转换成[y_n,y_n-1,…,y_i,…,y_0]向量的线性方程组,其中y_i表示y的i阶导数; 确定初始状态 迭代求解每一个点的y值(欧拉法),最后通过matplotlib做出曲线图。 以 ...原创 2019-07-23 16:41:03 · 4944 阅读 · 0 评论