code: def run(self):
          
          # try:
          self.fenum.write('\n')
  
          self.fcpp = open(os.path.join(os.path.abspath(self.ctp_dir), 'ThostFtdcUserApiDataType.h'), 'r')
          for idx, line in enumerate(self.fcpp):
              l = self.process_line(idx, line)
              self.f_data_type.write(l)
  
          self.fcpp.close()
          self.f_data_type.close()
          self.fenum.close()
  
          print('ctp_data_type.py生成过程完成')
docs: 主函数