The square brackets here, meanwhile, say this is a special type of variable that's got multiple values inside of it.
这里的这个方括号,同时,说明这个是特殊的变量类型,里面有很多复合的值。
Whatever the mortgage rate is quoted, you substitute it into this formula and you find out what the square bracket thing is.
如果知道利率,你把它带入公式,就能得出方括号的数值
You'll also see in a little while why both of these things would work this way, but it's not what I wanted. OK?
我应该把括弧,而不是方括号放在这里,你们稍后就会,明白为什么这两个符号在这里都是行得通的?
It turns out you can list one, give it a name, and if you use square brackets, that tells the compiler I actually want to put multiple values inside of this -- inside of this variable and how do we do that?
结果是你可以列举一个,给它取个名字,如果你使用方括号,那是告诉编译器,在里面我需要许多的值--在这些变量里,我怎么做到的?
Why does it start with square braced square brace?
这为什么以两个,方括号开始呢?
OK. And how do I create them? Well, the representation is, following a square bracket, followed by a sequence of elements, separated by commas, followed by a closed square bracket.
就是一个有序的序列,好,那么我们怎么创建元组呢?,好,表达式是,一个方括号,后面是一系列的元素,以逗号分开,以一个闭方括号结束,这就是我刚才所说的。
Then to get the monthly payment, you take the square bracketed thing and you divide by the mortgage balance and that's the monthly payment; that's how it's calculated.
如果要算每月偿还额,你用贷款余额,除以这个方括号的值,这样就得出每月偿还额,这就是每月偿还额的计算方法
Well, turns out that with arrays, not to make this too trippy too soon, but Arg V bracket something is a string, you can also use square bracket notation to go to a specific letter in a string, because little teaser a string is just an array.
好的,结果用那个数组,不要使这个很快引起幻觉,但是Argv什么的,是一个字符串,你也可以用方括号定位到,字符串中的一个特定的字母,因为一个字符串只是一个数组。
At every point of time your mortgage balance is equal to your mortgage payment times that square bracketed thing, where T is the amount of time you have left.
在每个时间点的抵押贷款余额,都等于每月偿还额乘以,方括号内的值,T是剩余年份数
应用推荐