And then hash character takes in any string or character, single character, gives me back a number. Notice what I do.
然后哈希接受任何字符串或字母,单个字符,返回给我一个数字,注意我要做什么。
So, if we look at what the other sub shells are called, essentially we're just converting the number to a letter.
我们来看看,另外的子壳层叫什么,本质上,我们就是把数字转换为,一个字母。
That the phonebook was sorted alphabetically and that the array of numbers on the board behind the second row of paper itself was sorted alphabetically.
电话簿是按照字母顺序排列的,而且黑板上第二排后面的一系列数字,也是按字母顺排列的。
And s is this lowercase notation l that the spectroscopists use in place of the l number.
而s这个小写字母,被光谱学家用来代替数字。
So, what's the idea? If I know what my hash function does, it maps, in this case characters into a range zero to 256, which is zero to 255, I create a list that long, and I simply mark things.
我知道我的哈希函数做什么,在这个例子中,它将字母,映射成0到255的256个数字,我创建了一个这么长的列表,并且我只是简单的标志这些东西。
Diets by numbers and letters -eDiets, Number Seven, The GI Diet.
还有关于数字和字母的减肥法,E减肥法,数字七,GI减肥法
But we know already from week zero that computers ultimately represent all information with numbers, and if they want to represent letters inside memory, well what do they do or what do they use?
但是自从上周我们已经知道,计算机最终是用数字来表示所有的,信息,如果它们要描绘,在内存中的字母,它们该怎么做,用什么方式呢?
You have to come up with a convention that maps numbers to letters.
你必须提出一个,数字与字母对应的协定。
They want to represent letters and not just numbers.
它们想描绘字母而不只是数字。
But if we know that 65 is the int that maps to the capital letter "A," we've already seen verbally that you can convert letters to numbers and numbers to letters, and so here's the syntax with which we'll soon be doing that.
如果我们知道65是个整型数,对应的是,大写字母“A“,我们已经口头地说明,我们可以把数字转换为字符,字符转化为数字,所以这里就是我们将要学习的一种语法。
This might look a little cryptic at first, but it turns there is some very obvious patterns here, for instance. According to this chart, if you want to represent the letter A A in the so called ASCII system, what number do you actually use to do so?
起初,它看起来有点神秘,但你会发现它有一些明显的对应模式,这里就有例子,根据图表,在所谓的ASCII系统中,你想表示字母,你该用哪些数字呢?
A If you want to convert a number like 65 to the letter A, you just have tell the computer "cast that int to a char."
如果你要把一个像65这样的数字转换为字母,你只需要告诉计算机“把那个int型数据转换成char型处理“
应用推荐