文件中的每一行将包含一个单词及其同义词,并且使用空格或其他一些已知的标记分隔。
Each line in the file will contain a word and its synonyms separated by a space character or some other known token.
正则表达式可以过滤特定的位置,例如行的开始或结束,以及单词的开始和结束。
A regular expression can filter for a specific location, such as the start or end of a line and the beginning and end of a word.
扫描会向一个单词进行累积, 直到结束(或者是行或列的末尾,或者遇到非字母的块),然后将此单词添加到它寻找过程中遍历的所有字母细胞。
The scan accumulates a word until a break (either the end of a row or column, or a non-letter tile) and then adds the word to all the letter cells it found along the way.
应用推荐