To keep himself awake as he flew east during the long night, Post tied a piece of string to one finger.
VOA: special.2009.03.18
If somewhere later on in the code it shifts to string, I might not be manipulating that and getting actual values out, but not what I wanted, and it's going to be really hard for me to chase it back.
然后后面的一些代码,把变量类型变为了字符串,我可能不会通过实际操作,去取得实际的变量的类型,但是这并不是我想要的类型,而且对我来说把类型,变回去也很困难。
If you talk to string theorists, they will tell you there are really, how many dimensions?
如果你和弦理论家交流,他们会告诉你到底有多少维度
Green bush beans used to be called string beans because of fibers along the pods containing the seeds.
VOA: special.2009.03.24
It says, if I want to print out something I built in Cartesian form up here, says, again, I'm going to pass it in a pointer to the instance, that self thing, and then I'm going to return a string that I combine together with an open self and close paren, a comma in the middle, and getting the x-value and the y-value and converting them into strings before I put the whole thing together.
这不仅仅是个列表,它是怎么来做的?,流程是:如果我想要返回,一些已经在笛卡尔模式下建好的值,好,再说一遍,我首先要传入一个,指向实例的指针,也就是,然后我会返回一个,由开括号,闭括号,中间的一个逗号,以及提前转换为字符串格式的。
The other end of the string was tied to a heavy aircraft tool.
VOA: special.2009.03.18
printf And then I'm gonna use the same printf line after that to actually plop it into this formatted string.
我还是要用到,来把它转换成格式化字符串。
Bela Fleck brings a modern sound to this traditional string instrument.
VOA: special.2010.04.19
These joint undertakings are like,well, you might think of them analogous to playing chamber music with a string quartet.
这种共同行为,就像是用弦乐四重奏演奏室内乐。
Despite a string of attacks early Sunday,mainly in Baghdad, insurgents were not able to carry out the massive strikes they had threatened.
VOA: standard.2010.03.08
The head of a string of pigs appeared, snout-up, over the ditch, and he had to screech to a stop and watch the rear of the last pig disappear shaking into the ditch on the other side.
这时候出现了一群猪,仰着鼻子走过水渠,他只好用一个急刹车,目送着最后一只猪大摇大摆地跨过水沟,消失在另一端。
They set off a string of bombs that damaged equipment in the machine room and started a fire that authorities rushed to put out.
VOA: standard.2010.07.21
And what are the strings up to in terms of string technique here?
这里弦乐的演奏技巧,是为了表达什么
Rossman points to a string of e-mails from colleagues around the world who call the bill misguided, and see it as an example of California foolishness.
VOA: standard.2010.07.26
The violin string extends from x equals zero to x equals L, and we pluck the violin string.
弦从X轴指向原点,让x等于L,然后我们拉直那根弦。
Did the cat get your tongue Did your string come undone One by one One by one It comes to us all It's as soft as your pillow (SINGING) I dreamed I was missing You were so scared But no one would listen 'Cause no one else cared After my dreaming I woke with this fear What am I leaving When I'm done here?
VOA: standard.other
It says if this is a string of length 0 or 1, I'm done. I'm going to return the answer true.
我就会返回答案为真,否则的话我得判断它。
Have I found you Flightless bird Grounded Bleeding or lost you American mouth (SINGING) How come I end up where I started How come I end up where I went wrong Won't take my eyes off the ball again You reel me out then you cut the string How come I end up where I started How come I end up where I went wrong Won't take my eyes off the ball again First you reel me outand then you cut the string You used to be all right What happened?
VOA: standard.other
Notice what it says. I'm going to pass in 1 a string, call it s, binds it locally, and it says the following.
然后看接下来的内容,接下来说的是如果这个字符串的长度等于,那么我就成功了。
It turns out when we call string a string, we're really referring not to those characters but to the address, the location and memory of those characters.
当我说字符串时,我并不是指这些字符集,而是指地址,就是这些字符集在存储器中的位置。
But really, the computer's just so fast I'm drawing the same string with just a slightly different number again and again after going to sleep one second at a time.
但是真实地,这个计算机到现在为止,我一次又一次用稍微不同的数字,绘画了相同的字符串,在睡眠1秒钟之后。
So if I want to use a string as we'll call it which is a word or phrase generally, they always go between double quotes, David hence the quotes around David, and they are double quotes not single quotes intentionally.
当我们要表示单词啊,词组啊,句子啊等等这样的东西时,就会用到字符串,它们位于双引号之间,也就是这里双引号之间的,是双引号,不是单引号哦。
STUDENT: Good question. Sounds like a reasonable guess How in the world am I going to compare a string to a number?
学生:不可闻的声音:,很好的问题,听起来像一个很合理的猜测,我到底该怎么对一个字符串,和一个数字进行比较呢?
So there are all sorts of different little technique things you can do to create different colors and sounds on all string instruments, so this applies to any of them.
在所有弦乐器中,都能用很多小技巧,来制造不同的音色和音质,这些技巧对任何弦乐器都适用
So it's a useful way of not quite knowing in advance what you want to put in a string, but being able to create strings, phrases, sentences, dynamically.
这是一个很有用的方法,如果你之前不是很了解,在句子中要加入什么,但是这个方法可以,动态地创建字符串,短语,句子。
So, let's do a little sanity check now and let's try to demonstrate as much I now claim I'm going to capitalize the copy of the string I just made.
多以,让我们做一个检查,然后做一个演示,现在我声称,我要利用那个字符串的拷贝。
There's a whole bunch of blocks that we'll look at in more fun detail on Friday but I'm going to pick the easiest one here and I'm going to type Hello CS50 in this string, "Hello CS50", zooming in say how nice the puzzle pieces are nicely interlocked?
今天我们看到的各种图块,到下周五我会仔细讲解其中的精妙之处,但今天我只想举一个最简单的例子,我要在这儿键入字符串,放大窗口,然后看看这漂亮的图形和文字,是如何美妙地连结在一起的?
And it boils down to modifying the format string with just a simple number.
它归结于是用一个简单的数字来,修改字符串的格式。
Well, what does it mean to copy a string?
嗯,复制一个字符串是什么意思?
I just doubled the indentation each time so you can see it. So each successive call, notice what's happening. The argument is getting reduced. And we're going another level in. When we get down to this point, we're calling it with just a string of length one.
因此每次成功调用注意它的过程,我们的命题不断简化,而且我们不断深入嵌套,当我们走到这一步的时候,我们就是在调用它处理,仅有一个元素的字符串了。
应用推荐