parameters: (cond, start=Datetime(201801010000), end=Datetime.now(), print_out=True)
return_statement: return result
docstring: 示例：
      #选出涨停股
      C = CLOSE()
      x = select(C / REF(C, 1) - 1 >= 0.0995))
  
      :param Indicator cond: 条件指标
      :param Datetime start: 起始日期
      :param Datetime end: 结束日期
      :param bool print_out: 打印选中的股票
      :rtype: 选中的股票列表
docstring_summary: 示例：
      #选出涨停股
      C = CLOSE()
      x = select(C / REF(C, 1) - 1 >= 0.0995))
docstring_tokens: 示例： #选出涨停股 C = CLOSE () x = select ( C / REF ( C 1 ) - 1 > = 0 . 0995 ))
function: def select(cond, start=Datetime(201801010000), end=Datetime.now(), print_out=True):
      """
      示例：
      #选出涨停股
      C = CLOSE()
      x = select(C / REF(C, 1) - 1 >= 0.0995))
  
      :param Indicator cond: 条件指标
      :param Datetime start: 起始日期
      :param Datetime end: 结束日期
      :param bool print_out: 打印选中的股票
      :rtype: 选中的股票列表
      """
      q = Query(start, end)
      d = sm.get_trading_calendar(q, 'SH')
      if len(d) == 0:
          return
  
      result = []
      for s in blocka:
          if not s.valid:
              continue
  
          q = Query(start, end)
          k = s.get_kdata(q)
          cond.set_context(k)
          if len(cond) > 0 and cond[-1] != constant.null_price and cond[-1] > 0 and len(k
                                                                                        ) > 0 and k[-1].datetime == d[-1]:
              result.append(s)
              if print_out:
                  print(d[-1], s)
  
      return result
function_tokens: def select ( cond , start = Datetime ( 201801010000 ) , end = Datetime . now ( ) , print_out = True ) : q = Query ( start , end ) d = sm . get_trading_calendar ( q , 'SH' ) if len ( d ) == 0 : return result = [ ] for s in blocka : if not s . valid : continue q = Query ( start , end ) k = s . get_kdata ( q ) cond . set_context ( k ) if len ( cond ) > 0 and cond [ - 1 ] != constant . null_price and cond [ - 1 ] > 0 and len ( k ) > 0 and k [ - 1 ] . datetime == d [ - 1 ] : result . append ( s ) if print_out : print ( d [ - 1 ] , s ) return result