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

retain_counts.py 309B

12345678910
  1. from typing import List
  2. from million.model.message import Message
  3. import million.analyze.message_evaluation as msg_val
  4. def retain_counts(messages : List[Message])-> List[Message]:
  5. """
  6. Retain only the messages that have a counted value
  7. """
  8. return [msg for msg in messages if msg_val.get(msg)]