下面這個是什麼程式語言呢?看著像js,但是在js 我也沒見過
<code>GetSinaURL <- function(code = '600000', year = '2016', quarter = '1', index = FALSE) { sina.url <- '' if (index) { sina.url <- paste0('http://vip.stock.finance.sina.com.cn/corp/go.php/vMS_MarketHistory/stockid/', code, '/type/S.phtml?year=', year, '&jidu=', quarter) } else { sina.url <- paste0('http://vip.stock.finance.sina.com.cn/corp/go.php/vMS_FuQuanMarketHistory/stockid/', code, '.phtml?year=', year, '&jidu=', quarter) } return(sina.url) }</code>
下面這個是什麼程式語言呢?看著像js,但是在js 我也沒見過
<code>GetSinaURL <- function(code = '600000', year = '2016', quarter = '1', index = FALSE) { sina.url <- '' if (index) { sina.url <- paste0('http://vip.stock.finance.sina.com.cn/corp/go.php/vMS_MarketHistory/stockid/', code, '/type/S.phtml?year=', year, '&jidu=', quarter) } else { sina.url <- paste0('http://vip.stock.finance.sina.com.cn/corp/go.php/vMS_FuQuanMarketHistory/stockid/', code, '.phtml?year=', year, '&jidu=', quarter) } return(sina.url) }</code>
google了下,找到原文了.
R抓取A股歷史行情並寫入MySQL
是不是R語音
F#是使用
golang是有這個符號的,但沒有function之類的