Using NumPy
After install NumPy, import it as a library:
import numpy as np |
Creating NumPy Arrays
From a Python List
my_list = [1,2,3] |
Anaconda: a distribution of Python
Jupyter: a development environment (IDE) where we can write code, display images, and write markdown notes.
Anaconda Navigator -> Jupyter Notebook
By this way, we can only open Jupyter Notebook for data under C:\User\User\ (the layer of Anaconda3 is)
Anaconda prompt -> change directory to where *.ipynb files are -> ‘$ Jupyter Notebook’
u是罐子中的黄色小球概率,v是样本中的黄色小球概率,u=0.5。题目中已规定v=u=0.5,则10个样本中黄色球的个数为10*v=5,剩下的绿色球的个数为10-5=5。
最后实际上是要求解:取出来的10个样本中,黄色小球为5个 绿色小球为5个的概率。
注意,要用v来计算样本中各类小球的数量,这仅仅代表取样结果。真实取样时,要用罐子中的实际概u来求解。)
-Node.js (Should be at least nodejs 6.9)
-Git
-NVM (NVM for Windows)
After installed nvm, type the command below into cmdline:
$ npm install -g hexo-cli |