但是,由于它可以包含字母数字字符,因此它不适于与Sphinx结合使用,Sphinx要求索引的每条记录都有一个惟一的32位整型键。
However, because it can contain alphanumeric characters, it's inappropriate for use with Sphinx, which requires each record indexed to have a unique 32-bit integer key.
然后你把每个字母转换成一个数字(用内置的ord函数),用这些数字作为这个列表的索引,然后累加相应的计数器。
Then you could convert each character to a number (using the built-in function ord), use the number as an index into the list, and increment the appropriate counter.
然后你把每个字母转换成一个数字(用内置的ord函数),用这些数字作为这个列表的索引,然后累加相应的计数器。
Then you could convert each character to a number (using the built-in function ord), use the number as an index into the list, and increment the appropriate counter.
应用推荐