"What I do want to see happen is that they get legalized, even if they have to pay back taxes and that they also have to pay penalty fees."
VOA: standard.2010.04.12
If I do this, try and get the 10th element of a list that's only eight long. I get what looks like an error, but it's actually throwing an exception.
如果我来这么做,试着去取长度为8的列表的第十个元素,我貌似能得到一个错误。
If I could do that for the rest of my life, get paid to talk all day, I would love to.
如果我的余生能够通过说话来赚钱,我非常愿意这样做。
And then they get really angry and say I am going to solve this if it is the last thing I do.
然后他们真的很愤怒,所我就要解决这个,如果这是我做的最后一个。
And I haven't said yet, how do I get that collection, but you could certainly conceptualize that, if I had that collection, that would be nice thing to do. That is a more common pattern.
也可以这么来操作,这是个更常用的模式,这基本上也就意味着,对于某些数据的集合,我想要一个循环机制。
I'm sorry if I sound a little bit like Billy Phelps, but I do get excited. He quotes the passage from Macbeth.
如果我听着有点像Billy,Phelps,那不好意思了,因为我真的挺激动的,来看麦克白的选段。
You won't get everything I'm talking about in the lectures, if all you do is the readings.
你同样无法了解我在讲座中所讲的全部,如果你只是一味的阅读。
If I can't, I want to knock him back, because what I really need to do is to get him out of the way.
如果杀不了,我就要把他击退,因为我真正的目的是把他从这条线路上推开
If I do that, then I get what's called the frontier for the portfolio.
从这个式子里,可以得到所谓的有效边界。
If I choose 1 against 3, what share of the vote do I get?
如果我选立场1,对手选立场3,我能获得多少选票
My hope is that if I do it well enough, people who aren't philosophers and are interested exclusively in conceptual analysis will get something out of it.
我希望如果我做得足够好,可以让那些不是哲学家但是,对概念分析感兴趣的人,得到一些启发。
Yeah, so you're asking, if for example, why do you need a booster of tetanus, because if I get exposed to tetanus wouldn't I have this rapid response?
所以你会问,举个例子来说,已经感染过破伤风杆菌的人,为什么仍然需要接种破伤风疫苗,身体不是应该马上对该病菌做出应答吗
There we go. Now if I do this, an infinite number of times, we should get roughly 50/50, but now we have the ability to do things only once in awhile.
开始,如果我们,不停地按这个按钮,我们大致会有一半的机会听到猫叫,但是我们每次只有一次按按钮的机会。
And you know, A) I don't have the energy to do this, and B) it would probably violate four hundred different privacy laws or whatever But if I took all those faces and morphed them together, I would get a very pretty face ? And how do we know this?
你们知道,第一,我没有精力这么做,第二,这可能会违反400条不同的隐私条例,但如果我把你们的样子,混合在一起,会得到一张很漂亮的脸,我们怎么知道?
What if I just get a list of elements, what do I do?
我们想想,不幸的是?
And what do I do if I get a key error?
如果我得到了关键字错误该怎么办呢?
The second thing is, what do I print out if I actually don't get the right input in?
第二件事是我没得到,正确类型的输入时输出什么?
In the former case if I choose 1 against 4, how many votes do I get?
如果我选立场1对手选立场4,我会获得多少选票
Well let's see. My fall back is, I could just do linear search, walk down the list one at a time, just comparing those things. OK. So that's sort of my base. But what if I wanted, you know, how do I want to get to that sorted list? All right?
我只能做线性搜索了,一次遍历一遍列表,一个一个比较,但如果我想要,那怎样得到有序的列表呢?,现在的一个问题是,我们排序之前?
And if I chose 2 against 3, what do I get? I get 20, I get all the people at 1 and I get all the people 2, so I get 20%, so we're okay again.
如果我选立场2他选立场3,我会得到20%的选票,立场1和立场2的选票都归我,所以是20%,大家都明白了吧
But that little short hand there is doing exactly the same thing. It is adding that value into some digits and putting it back or signing it back into some digits. And I'll walk through that loop and when I'm done I can print out the total thing does. And if I do that, I get out what I would expect.
加上得到的这个数的,但是这个缩写声明其实是进行了同样的操作,它把我们得到的这个数加到一个数上面去,然后用和对这个数进行了重新赋值,在循环中会去遍历字符串,当完成循环后,程序会显示数字的总和,如果我运行,这个程序的话,我会得到我期待的结果。
If I wanted to use print as a variable name, how do I get the system to decide gee, do I want print as a value for something, or do I want print as a command?
如果我把print当做一个变量名,我如何让系统来决定,我是要把print当做一个命令来用呢,还是要把它当做一个变量名来用呢?
How would we go about, I mean I don't want to do it because I'll probably get it wrong, but if I wanted to solve out for this X and the Y, since this is a QR class, let's just talk about it a second.
我们怎么解呢,我的意思是我现在不会去计算,因为我可能会算错,但是如果你真的很想解出X和Y的值,介于这是一节需要快速反应的课,那我们花些时间来探讨一下吧
应用推荐