And so you get to build your own special purpose programming language that helped you solve your problems in biology or finance or whatever,
你读过的类型都可以,所以你就可以让编程语言按照你的,特殊用途去解决你的生物学,财务或者任何类型的问题,
But you can choose what type of Science you want to take here. You can choose electives.
但你可以选择你想上的科学课的类型。你可以选择选修课。
You can bring any calculator you want, we don't actually have restrictions for calculator types here, but what you can't do, is you can't program any relevant chemical or information about constants in there.
你可以带你想用的任何一种计算器,我们并不限制计算器的类型,但是有一点是不允许的,那就是你不能使用编程的功能来记录,相关的化学常数或其它信息。
So it's a way of reminding you, I've got to be careful about the types of things that I put in.
因此我这是在提醒你,一定要对输入的东西的类型,多加注意。
You can compel the compiler to treat some value as a different type of value, at least if it makes intuitive sense that that should be possible.
你可以控制编译器处理,不同类型的数据,至少我们凭直觉,它应该是可能的。
Okay, how many people feel that it represented a really accurate picture of what you're eating in terms of the amount and the types of food and everything?
有多少人认为,它十分精确地体现了,你所吃的食物的数量,以及类型等方方面面
I think for any type of a night activity that you're looking for you could probably find it.
我觉得任何类型的夜生活,你在旧金山都能找到。
The personal income tax is not simple; it's not just a flat rate on your income, it depends on the type of income.
个人所得税计税方法并不简单,并不是统一的征收税率,而是取决于你收入的类型
Most sports and activities like running and cycling are very one-dimensional movement patterns, so you're,
大部分运动和活动,像跑步和骑车,都是很单一类型的运动,所以你,
You said that you work here. What kind of businesses are around here?
你说你在这儿工作。这周围都有哪些类型的企业呢?
What kind of movies have you watched recently?
你最近看了什么类型的电影?
These are problems that look a lot like what you might have to do during their weekly assignment if you were a student in this course.
讲的那些问题,基本上是,如果你上那个课,会遇到的周作业的类型。
Could you describe your ideal type?
你能描述一下你理想的类型吗?
You'll learn a lot more about this if you take organic chemistry, but, In fact, you can then go on and make a bunch of other different kinds of very interesting molecules.
如果你选了有机化学课,你会对它有更多的了解,但是,实际上,你可以继续制造出一堆,其它不同类型的有意思的分子。
You'll notice that a lot of different kinds medications do you have chlorine in them, you'll see that c l group.
你会注意到很多不同类型的药物都含有氯,你会看到这类氯。
So you're implementing this black box, and if its purpose in life is to actually return a value, you have to tell the compiler what kind of value to expect, and this is going to have ripple effects.
你在实现这个黑盒子,如果它的目的是,返回一个值,你必须告诉编译器你期望的是什么类型的值,这个将是一个连锁反应。
It's not always how fast you throw the fastball, sometimes it's your different styles or the different ways that you decide when to throw what.
这不总是你投出,棒球的速度有多快,有时这是你投球的类型,或者你决定采用的投球方式。
And one of the things that was useful here is, that we actually know that the set of primitives that you want to use is very straight-forward.
这儿有一个很有用的东西是,我们实际知道你想用的,一系列基本类型是非常明显的。
So first just a couple of teasers if you are in fact the geeky type, so our friends at Microsoft are having this little nerd party in a few days.
首先是几个广告,如果你是那种不太受欢迎的类型,我们在微软的朋友几天后会举办一个小派对。
And by that, I mean anything that can be described in one of these process, you can capture in that set of primitives.
对于那个,我的意思是任何东西,都可以用这个流程中的一部分来表达出来,你可以从那堆基本类型中间挑选。
Well basically what we're doing is we're giving ourselves the ability to create data types the same way that we have some built-ins, so we have things like int, float, string, these are built-in data types.
就是要赋值我们自己创建,和内置的数据类型,相同的数据类型的能力,我们有一些内置的数据类型,如int,float,string等,如果你考虑下这些数据类型。
So input is an int called F, print out to the screen or your piece of paper the value of C. Odds are you only need two, maybe three lines of code for this, but the goal ultimately will be try it on your own.
所以输入是一个int类型的F,在你的屏幕上,或你们的纸上打印出C的数值,可能你们需要两行或者三行的代码,但是最终的目标需要你自己独自尝试。
int So whereas before I mentioned int, turns out if you wanna put a string in a variable, you have to say this is a string.
先不管我之前提到的,如果你想把一个字符串赋给某个变量,那你必须事先声明这个变量是string类型的。
And if you think about it, associated with each - one of those data types is a set of functions it's intended to apply to.
你会发现每个类型都有,与之对应的一个集合的操作,有的时候这些操作,有的时候某个操作可以,应用于多种数据类型。
You have to be ever so explicit as to what data type your actually passing in.
你必须很清楚,你们输入的参数是什么类型的。
But in terms of drugs that don't look like maybe this compound was used in the synthesis, many of them might have used thionyl chloride, because it generates such a nice reactive intermediate that you can go on and make a bunch of different compounds from that intermediate.
但是对于药物来说,它们可能跟合成过程中用到的这种化合物并不相像,很多药物的制造过程中都会用到亚硫酰氯,因为它能产生活性如此之高的反应中间体,以至于你可以继续利用反应中间体,来制造一堆不同类型的化合物。
So, that's the difference in thinking about different types of ionization energy, so it can get a little bit confusing with terminology if you're just looking at something quickly, so make sure you look really carefully about what we're discussing here.
所以,这就是我们,在思考不同类型的电离能时所看到的不同,因此如果你看得不够仔细的话,你可能会被其中的术语弄迷糊了,所以一定要看仔细,我们讨论的是什么。
And over the next couple of days, you'll see what we mean by this in detail.
就是抽象数据类型,你可以在网上看到这两个术语。
you could characterize them in terms of how they're gated, -- and basically how they open or close -- that's one way to talk about different types.
你可以通过闸门的类型来描述它们,这基本上也就是看它们是如何打开或关闭的-,这是一种讨论不同类型的方法。
And we've only just begun using it, but it has just a bunch GetInt GetString GetDouble of very useful functions like GetInt, GetString, GetDouble, And so as those names imply, you can just cull these functions with no arguments and you'll get back that data type based on its name.
我们刚开始使用了它,里面有很多的,有用的函数,像,所以,那些名字暗示,你可以挑选这些,没有参数的函数,然后你可以通过它的名字,获取他们的数据类型。
应用推荐