Home > Software engineering > Read TXT file data compared with the excel data, and find out the highest frequency of a group
Read TXT file data compared with the excel data, and find out the highest frequency of a group
Time:09-26
TXT file there are tens of thousands of array, want to one by one, with thousands of data in excel, and find out the coincidence rate is highest in the first 10 sets of data, ask ace to help! TXT file: 1, 2, 3, 4, 5 1,2,3,4,6 1,2,3,4,7 .
Excel file: Two, four, five 3,2,6 . Want to read every piece of data from a TXT file with excel all the data, choose the same probability of the top 10, Read 1, 2, 3, 4, 5 and excel in the two, four, five,2,6 | 3 |... Find out the three Numbers on all the probability of the top 10 array
Thank you very much!
CodePudding user response:
I don't know, I also is asking
CodePudding user response:
1, put the excel data archived in the dictionary, because the basic is the same, 2, and then use 2 heavy cycle to solve your problem: the first loop reads the data in TXT file; The second loop for each set of data in each judgment (and see whether there is in the dictionary) and... You know,