You simply find the artist, increment its votes, and save the list.
只需要找到歌手、增加票数、重新保存名单即可。
The second increment might provide a catalog that consists of a simple list.
第二个递增项目可能是提供含有简单清单的型录。
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 函数),用这些数字作为这个列表的索引,然后累加相应的计数器。
应用推荐