It says if this is a string of length 0 or 1, I'm done. I'm going to return the answer true.
我就会返回答案为真,否则的话我得判断它。
Notice what it says. I'm going to pass in 1 a string, call it s, binds it locally, and it says the following.
然后看接下来的内容,接下来说的是如果这个字符串的长度等于,那么我就成功了。
Is it is just like a string of words or-- >> What does-- what does what mean? A string?
是字符串?单词?还是?,>>你刚刚说什么?,一个字符串?
These joint undertakings are like,well, you might think of them analogous to playing chamber music with a string quartet.
这种共同行为,就像是用弦乐四重奏演奏室内乐。
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.
这时候出现了一群猪,仰着鼻子走过水渠,他只好用一个急刹车,目送着最后一只猪大摇大摆地跨过水沟,消失在另一端。
You can do it on other instruments but on a string instrument it's the difference.
很多乐器都能奏出颤音,但弦乐器上 这种揉弦产生的颤音是不一样的
The node is the same thing you see in a string.
这里所说的节点和你所知道的可以同样理解。
He's got her on a string, right?
小汉斯想把妈妈拴在绳子上,不是吗?
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.
当我说字符串时,我并不是指这些字符集,而是指地址,就是这些字符集在存储器中的位置。
Now, if I've asked the user for a string and then a moment later I ask the user for another string, well, they're going to end up in different locations in memory just by nature of get string.
现在,如果我要用户输入一个字符串,一会儿之后我要用户输入另一个字符串,他们最终是在,不同的内存地址中。
STUDENT: Good question. Sounds like a reasonable guess How in the world am I going to compare a string to a number?
学生:不可闻的声音:,很好的问题,听起来像一个很合理的猜测,我到底该怎么对一个字符串,和一个数字进行比较呢?
There's a function in purple, there's a string in green, and in black I have the assignment statements.
还有个粉色的方法,绿色的字符串,赋值声明是黑色的。
Even though my statement said enter a number, in particular, raw input here simply takes in a set of characters and treats it as a string.
即使我的陈述说的是应该输入一个数字,实际上,这里的原始输入会被当做一个字符,的集合来提取并被当做一个字符串来对待。
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.
这是一个很有用的方法,如果你之前不是很了解,在句子中要加入什么,但是这个方法可以,动态地创建字符串,短语,句子。
Six months later he could remember the whole movement of a string quartet.
然而六个月后他可以,记住一整段弦乐四重奏的乐章
Just the first one or more generally the address of the first one and then, man, I'll just figure it out from there where the rest of the letters are because by definition of a string, they're back to back to back.
只需要第一个字节的地址,然后,我可以指出之后的,剩下的字母,因为通过一个字符串的定义,它们是紧邻的。
other people had solved that problem for me, and this thing between quotes, we'll start calling a string.
至于如何实现的别人已经解决了,这个在引号之间的东西叫字符串。
应用推荐