Just to drive home one more reason why I don't want to have changes to the values other than through pre-defined things.
注意如果我这么做的话会发生什么,我可以说我想要改变,某个特定点的半径。
That's different when you have continuous values-- you don't have P because it's always zero.
和离散型随机变量的分布不同的是,连续型随机变量的分布中,某一点的概率值始终是零
So this first little piece of code right here says, ok you give me 2 points, I'll create another 1 of these lists and I'll simply take the x, sorry I shouldn't say x, I'm going to assume it's the x, the x-values are the two points, add them together, just right there, the y-values, add them together and return that list.
好,为了来认识到这一点,让我们来看一个简单的小例子,在你们的课堂手册上,你可以看到我写了一个小程序,它假设我得到了,这些点中的一些,我想对它们做一些操作,例如我想把它们加到一起,那么这里的第一小片,代码的意思是,好给我两个点,我会再创建一个数组。
应用推荐