I'm gonna keep as part of each stock, it's history of prices, which we can initialize, well, I've initialized it as empty, but that's probably the wrong thing, right?
我会把股票的历史价格,作为每只股票的一部分,我们可以先对它的历史价格进行赋值,好了,我先给它赋了空值,但是这样做可能不对,是吗?
He stood me up.
他却让我空等一场。
So I've appended this whole object.
因此我把整个对象都加到空数组里面去了。
You can call your broker and say, I'd like to short stock number one and what the broker will do is borrow the shares on your behalf and sell them and then you own negative shares.
你可以打电话给你的经纪人说,我要做空一号股票,经纪人就会在你的名下赊入这些股票,然后卖掉,这样你就拥有数量为负的股票了。
I'm going to give a name to that. And what you see there is I'm going to call divisors initially an empty tuple, something has nothing in it. Right here. And then I'm going to run through the same loop as before, going through this set of things, doing the check.
你们可以看到这里,我初始化一个空的元组,名为divisiors,这里,然后我会去运行,跟以前一样的循环,遍历这个集合内的东西,然后做检查,现在我要做的是,每次我找到了一个除数我要把它收集起来。
应用推荐