So we have--U.S. Government issues bills and that's less than or equal to one year and they pay no interest.
美国政府发行的短期国库券,期限通常小于或等于一年,且不付息
n Alright. So if n is less than or equal to 1, return n. Well that's not right, right?
好吧,如果n小于等于1,它会返回,这里不对,是吧?
We call an instrument of the U.S. Treasury with a maturity less than or equal to one year--we call that a bill and they used to be the only discount bonds issued by the U.S. Government.
我们把期限小于或等于一年的,国库券品种称为短期国库券,它们曾是美国政府,唯一发行的贴现债券
Going around in a cycle the integral of dq over T is less than or equal to zero.
对一个循环过程作dq除以T的积分,小于等于零。
00 Now I say while i is less than or equal to 100, I write my code, I sleep for a second.
现在我指明当i小于等于,我写下我的代码,我休眠一分钟。
I want less than, rather than less than or equal to.
对不对?我不应该写小于等于而应该写小于。
I assert the counter is less than or equal to 0.
是小于等于0的。
Notice that. It's a less than or equal to.
如果我先测测只有一个元素的情况呢?
The end test-- and I've got the wrong glasses on but it's up here, where I'm looking to see, is last minus first less than or equal to 2?
最后一次比较,我看错了,在上面,last减去first是不是小于2呢?,好的,既然我得到了一个?
I can either look at my flow chart, or I can look at the code. If I look at the flow chart, it says, I'm at this point. Look at ANS squared. Is it less than or equal to-- sorry, first of all, 0 ANS squared is 0, is it less than or equal to x, yes.
我可以看流程图也可以看我的代码,如果我看流程图的话,流程图这么说的,在这一点,看看ANS的平方,看是不是小于等于-对不起,首先,ANS的平方是。
So if n is greater than or equal to 1 and n is less than or equal to 3, let's just judge this thing a small number arbitrarily.
所以n大于等于1,并且n小于等于,我们武断的判定它为,一个小的数字。
This checks "Is i less than or equal to one hundred?
这个检查“I是不是小于等于100?
It's 1. Is it less than or equal to 16? Sure.
改变ANS,x不变,再去执行测试。
I test an end test. So the flow chart says, and the tradition was to do this in a diamond shape, I'm going to check if ANS times ANS-- oh, which way did I want to do this x - is less than or equal to x. Now that's a test.
首先进行终结测试,因此流程图就的去,传统的做法是把这个放到一个菱形里面,检查下是否ANS乘以ANS-哦,我刚才是怎么说的来着-是不是小于等于。
-- Else if n is greater than 4 and n is less than 6 -- 7 let's call it medium -- else if n is greater than or equal to 7, -- less than or equal to 10 -- let's call it "big" -- and if the user typed in zero or negative 10 or 20 or whatever, let's just use the all-inclusive else block and just say, "You picked an invalid number."
否则如果n大于4,并且n小于-,我们叫它为中间数--否则如果n大于等于,小于等于10--我们叫它为“大数“,如果用户键入了0或者-10或20或其它的,让我们用一个广泛的else子句,只需要说,“你选了一个非法的数字“
OK. If last minus first is greater than or equal to 2-- sorry, less than 2, then either look at this thing or look at that thing.
大于等于儿,抱歉,是小于二,看看这里或者那里,这就是我说的要特别小心的地方。
应用推荐