阅读背景:

如何在python 3中将单词转换为数字(自己的键和值)?

来源:互联网 

I am writing a Python 3 script that will take words in a text file and convert them into numbers (my own, not ASCII, so no ord function). I have assigned each letter to an integer and would like each word to be the sum of its letters' numerical value. The goal is to group each word with the same numerical value into a dictionary. I am having great trouble recombining the split words as numbers and adding them together. I am completely stuck with this script (it is not complete yet.I am writing a Python 3 script that will take w




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: