code: def get_lines(self):
          
          self.lines = []
          width = self.screen_width - 24
          if self.state == 0:
              # 播放列表
              for index, i in enumerate(self.win.playlist):
                  line = i['title'] if len(i['title']) < width else i['title'][:width]
                  line = color_func(self.c['PLAYINGSONG']['title'])(line)
                  line = str(index) + ' ' + line
                  if i['like'] == 1:
                      line += self.LOVE
                  if i == self.win.playingsong:
                      line += self.play_tag
                  self.lines.append(line)
          elif self.state == 1:
              # 历史列表
              for index, i in enumerate(self.win.history):
                  line = i['title'] if len(i['title']) < width else i['title'][:width]
                  line = color_func(self.c['PLAYINGSONG']['title'])(line)
                  line = i['time'][5:] + ' ' + line
                  if i['like'] == 1:
                      line += self.LOVE
                  if i == self.win.playingsong:
                      line += self.play_tag
                  self.lines.append(line)
          elif self.state == 2:
              # 红心列表
              self.rate = []
              for i in reversed(self.win.history):
                  if i['like'] == 1:
                      if i in self.rate:
                          self.rate.remove(i)
                          self.rate.insert(0, i)
                      else:
                          self.rate.insert(0, i)
              for index, i in enumerate(self.rate):
                  line = i['title'] if len(i['title']) < width else i['title'][:width]
                  line = color_func(self.c['PLAYINGSONG']['title'])(line)
                  line = str(index) + ' ' + line + self.LOVE
                  if i == self.win.playingsong:
                      line += self.play_tag
  
                  self.lines.append(line)
          self.lines.insert(0, self.subtitle[self.state])
docs: 因为历史列表动态更新,需要刷新