def cap_tops(days=5, retry_count=3, pause=0.001):
 if (ct._check_lhb_input(days) is True):
  ct._write_head()
  df = _cap_tops(days, pageNo=1, retry_count=retry_count, pause=pause)
  df['code'] = df['code'].map((lambda x: str(x).zfill(6)))
  if (df is not None):
   df = df.drop_duplicates('code')
  return df

def cap_tops ( days = 5 , retry_count = 3 , pause = 0.001 ) : if ( ct . _check_lhb_input ( days ) is True ) : ct . _write_head ( ) df = _cap_tops ( days , pageNo = 1 , retry_count = retry_count , pause = pause ) df [ 'code' ] = df [ 'code' ] . map ( ( lambda x : str ( x ) . zfill ( 6 ) ) ) if ( df is not None ) : df = df . drop_duplicates ( 'code' ) return df
parameters days:int 天数，统计n天以来上榜次数，默认为5天，其余是10、30、60 retry_count : int .