从CSV读取,它每隔一行跳过一次。我有两个CSV文件,一个用于用户,另一个用于属性-密钥ID是用户。seperate lines, seperated by appending \n at the end of the input stage)
每一个奇数都在工作,并检测到用户已经登录,每一秒都在跳过我读过了,我不认为我有一个.nextLine()运行跳过这个链接,但我只是在周五才开始使用CSVs和BufferedReader!
当我打印字典时,它似乎省略了一半以上的单词。所有的单词也都超过2个字符,所以应该放在字典中它们自己的关键字中,但似乎被忽略了。为了进行测试,我比较了一个与字典中的单词完全相同的文件。其中36个单词被找到,而45个单词丢失。 Words that are not present in the dictionary. The dictionary with the keys being first two letters of the word. d = {}with open(dictionary, '