Yeah, it's kind of simple, but it gives me an ordered list of these things, And let's run it. OK.
让我们来运行运行吧,好,我会先去搜索一些数组中没有的元素,让我来试试,看-1在不在这个数组里。
And I'll turn around and try to sell some of the photos that I take of the people climbing.
然后我转过头来还可以试试卖我拍的登山人的照片挣钱。
One of the things you could imagine is just try it on and input, see how long it takes.
你们想出来的方法只是可能就是通过,输入来试试,看运行时间会有多长。
And try to sing the bass.
我们来试试唱低音。
Let's try that. All right.
我们来试试,好吧。
the same as polar point 2, polar point 1 And then I could say well, gee, are they the same point?
和另外一个极坐标点,我如果来试试,和polar,point,2是不是相同的话?
We'll start up a shell and we'll try it. All right, we'll just get out of what we were doing here.
我们开一个shell然后试试,先退出现在的这个来。
The perspective is tricky-- and so we're trying to find the roots.
从视图上来看可能比较困难,因此我们来试试找到这个问题的解。
yeah I run this, yeah, I have a syntax error, yes indeed, because I forgot to comment that one out, all right, and cue, we'll try it again.
运行下,一个语法错误,确实是,因为我忘了把这里注释上了,好,让我们再来试试。
Well, let's try it. Let's try a little test. OK?
不过我们还是来试试吧,做个小测试怎么样?
And I want to basically try and use these things to do something with them.
我想要试试然后,用这些声明来进行一些操作。
Let's try equal equal because I didn't define it here.
让我们来试试双等于,因为在这里。
In this case, it's cutting up from the bottom end, which makes sense because the thing I'm looking for is always bigger than the midpoint and then, I don't know, let's pick something in between. Somebody want-- ah, I keep doing that-- somebody like to give me a number?
排除元素,这是讲得通的,因为我总是找比中点大的元素,那让我们挑一个同,中点之间的元素吧,我再来试试,谁给我个数字吧,我知道你们想给我些其他东西?
So let me just to try something a little more interesting, and then we'll get to writing some simple programs.
让我们来试试更加有趣的,一些事情吧,然后,我们再去写一些简单的小程序。
I can't rely on Professor Guttag if I give this- if this code to him, I can't rely on him to type in a float. Actually I can, because he's a smart guy, but in general, I can't rely on the user-- I wouldn't do it right to see if you did.
当Guttag使用这段代码的时候-,我不能相信他一定会输入一个浮点数,实际上我能因为他很聪明,但是总体上来讲,别相信用户一定会按照规则来-,我会故意做错来试试你的程序的。
Sounds a lot better.What about this, now going down to the G against the C?
听起来好多了,再试试这个,往下一个音高用G音来搭配C音?
They are computationally challenged, meaning, at the time they were invented, they were perfectly good sorting algorithms, there are better ones, we're going to see a much better one next time around, but this is a good way to just start thinking about how to do the algorithm, or how to do the sort.
他们是相当棒的排序算法,是有更好的算法,我们下一次,就会看一个更好的,但是开始想想,如何完成算法,或者说是如何排序,是一个好的学习方法,恩,再试试吧,如何来排序呢?
Well, let's try smoke test two.
好了,让我们来试试发烟测试2。
应用推荐