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
And that's useful because clearly I don't need to know in advance what the answer is going to be, what that string is actually going to be.
那个是有用的,因为我不需要预先知道,那个答案将会变成什么,或者那个字符串将变成什么的时候。
Well, we certainly didn't know on day one how many times each of you was going to want to call get string, how many words a user might type when you call get string.
好的,当然我们不知道第一天你们,想要调用GetSting多少次,当你调用GetSting时,用户会输入多少单词。
It could also say, what are the methods associated with the string, 1. I'm sure you can quickly graph it, but notice they aren't the same.
我们也可以说,与字符串1相关联的方法有哪些?,我相信你们可以很快的求出来,但是请注意这跟前面的。
You can't just take a quoted string back to back with another quoted string so you'd get some kind of compiler error.
你不能让一个引起来的字符串跟另一个引起来的字符串,背靠背,这样编译就会出错。
- 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.
因为我写了一个长度相同的字符串-,我的字符串不会变的更短-,它生成一个动画幻觉。
And you might say, wait a minute, isn't that a string, and the answer's no, I didn't say it's a string by putting quotes around it And notice how the machine responds differently to it.
你会想,等等,这不是个字符串么?,答案是否定的,我没用引号包围它就意味着它不是字符串,请注意计算机对它给出了不同的反应。
So long as I say I'm gonna put a string here, it doesn't matter what string it is, GetString is gonna take care of the job of getting it from the user.
把变量放在这,我们先不要管这个string是什么,GetString会负责,从用户那里获取该值。
I didn't. I gave it a string.
我并没输入数字,我输入了一个字符串。
I don't happen to like this, but he thinks that is, give a combination of a number multiplication in a string, this will in fact give us back a new string with that many replicas, if you like, of the string concatenated together.
我不喜欢这么做但是他认为,也就是说,返回一个字符串的,某个特定数字的倍数,这实际上会返回一个新字符串,一个原来的字符串的很多复制品,连接到一块的一个字符串。
You'll notice I have the string with the number 1 MIT a string with MIT, and then it just a plain old number, not a string, again it didn't quite give me 3.3 for reasons we've talked before, a and now it in the list a.
你们可以看到这儿有个以字符串1,形式显示的数字1,1个字符串,还有一个非字符串形式的平常数字,结果并不是3。3,原因之前我们,已经讨论过了,还有一个在list中的。
So the very last two lines of code I'm saying this, s2 the original string is s1, the copy of the string is s2, but if I haven't lost you, what are we really going to see when we print this?
最后两行代码是这样的,原字符串是s1,那个字符串的拷贝是,但是如果我没有忘记,当我们打印的时候,我们将看到什么?
应用推荐