He was a twelve-string guitar player named-- also known as Lead Belly.
VOA: special.2010.01.18
I'm doing a test there to say, x if the string x is less than the value of b, and x does not appear before b as strings, then I was going to do, oh, a couple of things, because they're at the same block level.
我正在做一个测试来看看,字符串,是不是小于b的值,而且x不在b之前作为字符串出现,如果是真的话我就要做,一系列的操作,因为他们是在同一个块等级上。
The second thing is, just as in the case of the violin string, the wave equation, as posed by Schrodinger, has a plurality of solutions.
第二,就那个小提琴弦而言,波动方程,被薛定谔所提出的,有许多解法。
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
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
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.
即使我的陈述说的是应该输入一个数字,实际上,这里的原始输入会被当做一个字符,的集合来提取并被当做一个字符串来对待。
Here is the pitch in--of--a string an octave higher so you can see it this way. As you probably know, if you take a long string and pluck it, it's going to take that long string a long time to pass that sort of cycle, if you will, just one pass through that cycle.
这也是个音高,一个高八度的音弦,你可以这样这样看 你们可能知道,如果你拨动长弦,长弦要经过很长时间,才能完成一个震动周期,如果你想,可以尝试下
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.
当我们要表示单词啊,词组啊,句子啊等等这样的东西时,就会用到字符串,它们位于双引号之间,也就是这里双引号之间的,是双引号,不是单引号哦。
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.
多以,让我们做一个检查,然后做一个演示,现在我声称,我要利用那个字符串的拷贝。
As we saw before, it simply concatenates them together and gives me back a longer string.
和我们之前学过的一样,这个操作会把两个字符串连接起来。
Glancing at the bottom, this is pretty arbitrary, but I chose to format my string as follows: % 1f so at the bottom here I'm printing out %.1f, which quick sanity check means print just one digit after the decimal place.
看下这个底部,这个是相当随意的,但我选择把我的字符串格式化成这样:,所以在这个底部我打印输出,提醒一下,这是一个只打印出,小数点后一位的方法。
Even though there's four bytes the length of the string is consistent with what a human being would interpret as the length 3 of the string which is 3.
即使那里有4个字节,字符串的长度,与我们所认为的长度是一致的,字符串的长度是。
You can treat a string as though it's an array because it really is.
你可以把一个字符串当做一个数组处理,因为它的确是一个数组。
S We saw percent S which is a placeholder for a string, turns out as you'll see over time there are other placeholders.
我们知道字符串占位符,输出来就是另一番场景了,还有一些其他类型的占位符。
Just iterates from zero to Arg C. The indented line here print F is clearly printing a string, as per the percent S, but what is it printing?
只是从零开始迭代,到ArgC,这个缩进行printf显然是打印一个字符串,就像每一个%s,它在打印什么呢?
And it treats it as a string, it's simply getting me back 52*7 the value of that string, 52 times 7, rather than the value of it.
这让Python把它当做字符串来对待,他返回给我了,一个字符串的值,而不是这个数的和。
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会负责,从用户那里获取该值。
b OK. In this example I'd use b. All right, as b get-- b is the thing that's changing as I go along here, but it could be things like, how many elements are there in a list if the input is a list, could be how many digits are there in a string if the input's a string, it could be the size of the integer as we go along. All right.?
好,在这个例子里我会用,因为b是一直在变的东西,但是也可能是如下情况:,如果输入是数组的话,变化的就是数组的元素数,如果输入是字符串的话,变化的就是字符串的长度,如果是integer的话,可能就是这个数的大小,对不对?
We can put a list in the list again, as we've seen before. So let's put the list containing the string a, and I'll print out so now we see something pretty interesting about a list, that we can mix up all sorts of things in it, and that's OK.
数组放到数组中去,让我们把这个包含,字符串a的数组放进去,然后再显示,我们看到了一些,挺有趣的事情:我们可以把各种,各类的东西混合着放进去,没问题。
应用推荐