code: def paging(data_list, group_number=1, group_size=10):
      
      if not isinstance(data_list, list):
          raise TypeError('data_list should be a list, but we got {}'.format(type(data_list)))
      
      if not isinstance(group_number, int) or not isinstance(group_size, int):
          raise TypeError('group_number and group_size should be int, but we got group_number: {0}, '
                          'group_size: {1}'.format(type(group_number), type(group_size)))
      if group_number < 0 or group_size < 0:
          raise ValueError('group_number and group_size should be positive int, but we got '
                           'group_number: {0}, group_size: {1}'.format(group_number, group_size))
      
      start = (group_number - 1) * group_size
      end = group_number * group_size
      
      return data_list[start:end]
docs: 获取分组列表数据
  
      :param:
          * data_list: (list) 需要获取分组的数据列表
          * group_number: (int) 分组信息，默认为 1
          * group_size: (int) 分组大小，默认为 10
  
      :return:
          * group_data: (list) 分组数据
  
      举例如下::
  
          print('--- paging demo---')
          all_records = [1, 2, 3, 4, 5]
          print(get_group_list_data(all_records))
  
          all_records1 = list(range(100))
          print(get_group_list_data(all_records1, group_number=5, group_size=15))
          print(get_group_list_data(all_records1, group_number=7, group_size=15))
          print('---')
  
      执行结果::
  
          --- paging demo---
          [1, 2, 3, 4, 5]
          [60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74]
          [90, 91, 92, 93, 94, 95, 96, 97, 98, 99]
          ---