コード例 #1
0
 def start(self):
     for index in range(self.startIndex,self.endIndex):
         word = self.searchWordsAsSeries[index]
         try:
             DatabaseManager.set_query_count('+'.join(word.split()),self.__search(word))
         except:
             print "stuck index: %d, %s "%index, word
             self.__ifError(word)
         if index % 100 ==0 and index!=0:
             print "pass 100 : %d"%index
     print "doneait"