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.
然后你把每个字母转换成一个数字(用内置的ord函数),用这些数字作为这个列表的索引,然后累加相应的计数器。
应用推荐