您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

find_holesV2.py 443B

12345678910111213141516
  1. from million.analyze.find_holes import find_holesV2
  2. from million.analyze.retain_counts import retain_counts
  3. from million.parse.fb_exports import FacebookExportParser
  4. DATA_PATH = './data/'
  5. parser = FacebookExportParser()
  6. export = parser.parse(DATA_PATH)
  7. filtered = retain_counts(export.messages)
  8. holes = find_holesV2(filtered)
  9. for hole in holes:
  10. print(f"{hole.start} - {hole.end} ({hole.end - hole.start})")
  11. print(hole.end_message)