试图找出一种方法来对存储在数组中的这些字符串行进行评分。我想我应该得到前8个字符并为它们分配一个数值。必须有一种方法可以将一个字符串更改为一个数字,然后我将其保存到数组后,我应该能够有另一个循环翻转得分列并对任何10%的内容进行分组
欢迎任何想法,下面我将发布我的数据样本
2017 Parade/1st/205 Bergamont
2017 Parade/2nd/205 Bergamont
State St Station/4th WF/Area C
Contour Apt/3rd-WF/Milwaukee,WI
Contour Apt/4th-WF/Milwaukee,WI
Contour Apt/5th-WF/Milwuakee,WI
Contour Apt/6th-WF/Milwaukee,WI
Contour Apts/R-WF/Milwaukee,WI
SouthridgeApt/B2/2ndWF-P1
SouthridgeApt/Clubhouse
SouthridgeApt/B1/2ndWF-P1
SouthridgeApt/B1/2nd/WF-P2
SouthridgeApt/B1/3rdWF-P1
SouthridgeApt/B1/3rdWF-P2
SouthridgeApt/B1/Roof-P1
SouthridgeApt/B1/Roof-P2
SouthridgeApt/B2/2ndWF-P2
SouthridgeApt/B2/3rdWF-P1
SouthridgeApt/B2/3rdWF-P2
SouthridgeApt/B2/Roof-P1
SouthridgeApt/B2/Roof-P2
Breezy Hill Nursery/MenomoneeFalls
Breezy Hill Nursery/MenomoneeFalls
Courtyard by Marriott/4th-WF
Courtyard by Marriott/4th-WP