For example, the code above will record a tile with a filename like v=w2.80&hl=en&x=228&y=4&zoom=15&s=Gal to be at position 0,4 in the (column,row) hash.
例如,以上的代码将把文件名为 v=w2.80&hl=en&x=228&y=4&zoom=15&s=Gal 的图像块记录到 (column,row) 散列中的位置 0,4 中。
Second thing I want to note is, the little hash mark or the pound sign, that's identifying a comment.
我想要说的第二件事是,这个小斜杠或者是井字号,这是用来标注注释的。
You've got a picture of somebody's face, it's a million pixels. Each pixel has a range of values from zero to 256. I want to hash a face with some function into an integer.
你有一个人的脸部照片,它有一百万个像素,每个像素的值范围在0到256之间,我想用某个函数将一张脸部照片。
Well the idea of a hash, in fact, what's called a hash function is to have some way of mapping any kind of data into integers.
我要怎么做?实际上想法还是哈希,通过一个哈希函数,把任何种类的数据都映射成整数。
应用推荐