python 处理10000个txt,每个文件夹里面放1000个。
1 fileNumberInDiretory = 1000 2 title_list = getChongFuTitle(cursor) 3 DiretoryNums = math.ceil(len(title_list)/fileNumberInDiretory) 4 5 diff_match_split = [title_list[i:i + 1000] for i in range(0, len(title_list), 1000)] 6 7 for i, j in zip(range(0, diff_match_split.__len__()), range(0, diff_match_split.__len__())): 8 for title in diff_match_split[i]: 9 print("title:" + str(title))