And you know what they have in the library?
你们知道图书馆里有什么吗?
Everyone is, you know, kind of always working or worried about what they're going to be working on next.
每个人都在埋头工作,而且都在担忧接下来要干些什么。
It gets popped off the stack as one says and so you know what the values actually as we've hinted at with our brief discussions of forensics they're actually still there.
它从堆中释放了,那些值是什么,就像我们讨论的辩论练习,所暗示的,我们还在那里。
You know what that means when they're framed there on the wall with their coupons still attached?
你知道吗,当债券陈列在墙上,而息票还贴在上面的时候
But what I find intriguing is they often say you know Crusoe, Domingo, Pavarottii.
但让我觉得很有意思的是他们总是说,你们知道克鲁索,多明戈或帕瓦罗蒂。
And you know what? They are probably right.
事实呢?,他们很可能是正确的。
so you can get a feel of, like, what students are tested on and what they are expected to know.
这样你就能了解教授想考学生些什么,以及学生应该知道什么,
This is on purpose, because one of the things I hope you have learned to do this semester, is look up things you don't know, and figure out what they do. What they mean.
我举这个程序是有目的的,因为我希望你们这续期能学到,如何去查找你不知道的东西并,且弄懂它,们是干什么的,是什么意思。
Because you can hire someone who is a software engineer and he's been doing it for 10 years and if they're doing it for 10 years that's probably what they're doing for their life, you know, and I mean that's cool.
你可以聘用一名,有着十年工作经验的软件工程师,如果他已经在这行业,待了十年了,那么可能这辈子他都会干这行,这样不错。
Yeah,so you know many many people have said or asked the question what are Americans objectives in Afghnastan today? What are they?
嗯,你知道很多人说或者问这个问题,美国在阿富汗的目标是什么?
But, um, I mean, you know, it's fine if that's what they're going to spend their money on.
但是,如果他们把钱花在那上面也是不错的。
Okay, first of all, because everything relies on self-report there's no machine, for the most part, that can do objective measures of this, you don't really know when people are telling you what they're eating.
好,首先,因为任何事都是建立在自觉上,大多数环节没有机器参与,这样的方式比较主观,你并不需要,人们告诉你他们所吃的是否真实
And you know, they might not be exactly like what you expected them to be online.
而且,现实生活中的他们(她们)可能和你在网上见到的那个人不完全一致。
and making it clear that you want to know what they believe, what their opinion is
清楚地表明你想知道他们想什么,他们怎么看,
And you want to know what they would do if they were in your shoes.
你想知道如果他们站在你的角度考虑他们会怎么做。
so that they can do on camera, you know, what they audition for.
这样他们才能在镜头前扮演试镜的角色。
The sellers, they're selling everything what they can, you know.
商家贩卖任何他们能出售的东西。
because you don't know what they'll do with the money.
因为你不知道他们会拿钱来做什么。
They can't just know what you mean.
它们不明白你的意思。
Unless you tell them what to do they're not gonna know how to do it.
除非你告诉它要做什么,它自己是不知道做什么的。
I can click on the cherries and see what they're doing, you know, not all that much.
点击那些樱桃,看它们在做什么,你能有个大概的了解。
And that...which itself is a function of... who is in power and who was then in power and what type of parties they are in... you know, sort of ruling parties.
只要政府能做出措施就好。,不管前后任的执政者是谁,他们所属的是哪个党派。,谁是执政党。
That goes back to that idea of sort of discipline coding. It's easy to have assumptions about what you think are going to come into the program when you writ it. If you really know what they are use them as search, but if you think there's going to be some flexibility, you want to prevent the user getting trapped in a bad spot, and exceptions as a consequence are a good thing to use.
这又回到了规范编码的想法上来了,在你写代码的时候考虑,什么会进入你的代码的思考是简单的,如果你真的知道,他们是用他们来做搜索的,而你希望有一定的灵活性,你想要阻止用户,陷入一个艰难的境地,那么异常是非常实用的。
> So is there a slash letter command for printf they could just like type you know what I mean?
>,所以这里有一个斜杠字母命令,来printf,他们可以像,【听不见的】你懂我的意思吗?
OK, you've actually seen exceptions a lot, you just didn't know that's what they were, because exceptions show up everywhere in Python. Let me give you a couple of examples.
好的,你们实际以及看过很多异常了,你就是不知道这些是什么,因为异常在Python中随处可见,我给你举些例子。
应用推荐