you never know. There's always a chance a string quartet may someday pop up on the schedule.
VOA: standard.2010.04.26
And if that's true is everything in the string, starting at the first element and removing the last element, a palindrome?
如果是相同的话,是不是字符串中的所有从第一个元素开始,并且删除最后一个元素后?
Notice what it says. I'm going to pass in 1 a string, call it s, binds it locally, and it says the following.
然后看接下来的内容,接下来说的是如果这个字符串的长度等于,那么我就成功了。
The global reach of the Marley tribute CD includes a pair of Canadian vocalists, two groups from Hawaii, and the veteran string band from the northeastern U.S.
VOA: standard.2010.07.22
s1 It's a little square, it's going to be called s1 and that's what exists as of line two of this program, GetSting but now I've called get string.
这是一个正方形,叫做1,这就是程序中第二行代码所表示的,现在我调用。
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
Let's take the situation where we take a violin string and we pluck it.
让我们设想这样一个情景,我们拿着小提琴的弦拉直它。
You can do it on other instruments but on a string instrument it's the difference.
很多乐器都能奏出颤音,但弦乐器上 这种揉弦产生的颤音是不一样的
He's got her on a string, right?
小汉斯想把妈妈拴在绳子上,不是吗?
That's why I call them string guys.
这也是我把他们叫做"弦男"的原因
Well,a fan of the claim that we all die alone might come back and say, Well,in the case of the string quartet, although it's true that I am playing with others, somebody could take my part.
一个相信人是孤独而死的人也许会说,在弦乐四重奏的例子中,虽然我确实是在和其他人一起演奏,有人是可以替代我的。
Otherwise I'm going to check to see is the first and last, there's that - 1 indexing, is the first and last element of the string the same?
是第一个还是最后一个,这就是这边-1的索引内容,这个字符串的第一个,和最后一个的内容是否相同呢?
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秒钟之后。
There's a function in purple, there's a string in green, and in black I have the assignment statements.
还有个粉色的方法,绿色的字符串,赋值声明是黑色的。
And there's probably more digits after the decimal place, but because of my formatting string, I only see a couple 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.
这是一个很有用的方法,如果你之前不是很了解,在句子中要加入什么,但是这个方法可以,动态地创建字符串,短语,句子。
The string is vibrating higher when it's exactly twice what the lower one is.
高音弦的震动频率,正好是低音弦的两倍
FOR c It's going to say FOR c, which was my name for the character in that string.
那么循环要去做什么呢?循环要去说,也就是字符串中字符的名字。
Last time we used printf generally to print a static string, like a hardcoded string, like "David," just for example's sake.
上次我们通常用“printf“,来打印一个静态的字符串,像硬编码的字符串“David“,这只是个例子。
- And because I'm writing out a string that's the same length -- -- my strings aren't getting shorter -- it's creating this illusion of some animation.
因为我写了一个长度相同的字符串-,我的字符串不会变的更短-,它生成一个动画幻觉。
You can treat a string as though it's an array because it really is.
你可以把一个字符串当做一个数组处理,因为它的确是一个数组。
It's great for string-matching problems of a whole variety.
都是一个很好的方案,他非常有用。
> If it's in the middle of the string.
>如果是在字符串中间呢。
But I can also ask for parts of this. So I can, for example, say give me the first element of s1 string 1, s 1. Ah, that's exactly what we would have thought if this was represented as an ordered sequence of things.
然后返回一个长字符串,我也可以,取字符串的一部分,例如,我可以要求返回给我字符串,的第一个元素,啊,这证明我们之前,认为的它是一个有序的字符序列的想法。
But there's an important thing going on here, if I in fact wanted to combine those into a string I should have told the machine to do that, and I can do that, by explicitly saying, take that, which is a number, then add it to that string.
但是这里有个很重要的事情,实际上想要把这些加到一个字符串里面去,我应该告诉计算机去做这个,我应该这么做,通过明确的输入,也就是把这个对象,一个数字,然后把它加到一个字符串里面去。
String players are taught whether it's cellists going this way, downbeat or violas and violinists coming down this way that the downward motion of the hand or the pull across the strong pull across should come with the downbeat; that emphasizes the downbeat.
弦乐手们都是这样教出来的,是不是大提琴手这样的时候或者中提琴手,还有小提琴手们在这里这样拉,当手势冲下,很重的向下的手势时候,是重拍出现的时候,都是在强调重拍的
0 And we'll also see backslash 0 which is actually the special character that's used at the end of a string to say no more string after this point in memory.
还有0,用于存储器中字符串末尾,表示在此之后就,没有字符了。
S We saw percent S which is a placeholder for a string, turns out as you'll see over time there are other placeholders.
我们知道字符串占位符,输出来就是另一番场景了,还有一些其他类型的占位符。
If you give me a number and a string, I'm going to concatenate them together, it's really different operations, but nonetheless, it's what it's going to do.
如果给的输入是一个数字和一个字符串,我将会把它们连接在一起,这实在是不正确的操作,但是无论如何,它就是会去这么做。
Notice by the way, there's that nice speck true going on saying put a string here.
在这里说放一个字符串在这儿有点小问题,如果是回文的话那么它将会返回真值。
应用推荐