code: def timeout_message_report():
      
      timeout_list = glb.ioloop._timeouts
      delay_task = []
      for timeout in timeout_list:
          if not timeout.callback:
              continue
          if len(timeout.callback.args) == 2:
              task_type, message = timeout.callback.args
              delay_task.append(message)
      msg = '当前已注册延时消息共有{0}条'.format(len(delay_task))
      for i, itm in enumerate(delay_task):
          msg = '{pre}\n[ID (序号) ]：D{index}\n[消息接收]：{receiver}\n[发送时间]：{remind}\n[消息时间]：{time}\n[消息标题]：{message}\n'.format(
              pre=msg, index=i, remind=itm.remind, time=itm.time, message=itm.title or itm.content, receiver=itm.receiver)
      interval_task = [(periodic.callback.args[1], periodic.is_running()) for periodic in glb.periodic_list if
                       len(periodic.callback.args) == 2 and periodic.callback.args[0] == PERIODIC_TASK]
      msg = '{0}\n当前已注册周期消息共有{1}条'.format(msg, len(interval_task))
      for i, itm in enumerate(interval_task):
          msg = '{pre}\n[ID (序号) ]：P{index}\n[消息接收]：{receiver}\n[运行状态]：{status}\n[发送周期]：{interval}\n[消息标题]：{message}\n'.format(
              pre=msg, index=i, interval=itm[0].interval, status='已激活' if itm[1] else '未激活',
              message=itm[0].title or itm[0].content, receiver=itm[0].receiver)
      return msg
docs: 周期/延时 消息报告