code: def read_data(self, sheet, begin=None):
          
          line = self.begin
          rows = sheet.rows
          for i in range(line-1):
              rows.next()
          template_line = self.template[self.begin-1]
          if not template_line['subs']:
              raise ValueError("Template definition is not right")
  
          for row in rows:
              d = {}
              for c in template_line['subs'][0]['cols']:
                  if c['field']:
                      cell = row[c['col']-1]
                      if isinstance(cell.value, (str, unicode)):
                          v = cell.value.strip()
                      else:
                          v = cell.value
                      d[c['field']] = v
              yield d
docs: 用于简单模板匹配,只处理一行的模板, begin为None时自动从for行开始
          :param sheet: 应该使用read_only模式打开
          :param begin:
          :return: