2018年9月29日

摘要: URL编码 : ## URLencode2 = function( str = '' ) a = URLencode( iconv( str, to = 'utf8', toRaw = F ) ) a就是编码后的字符串 解码 加载 urltools 包 b = urltools::url_decod 阅读全文
posted @ 2018-09-29 10:45 michael_YM 阅读(416) 评论(0) 推荐(0) 编辑

2018年5月30日

摘要: 主要是需要安装 unixODBC 驱动程序 1、安装 unixODBC # tar vxzf unixODBC-2.2.11.tar.gz # cd unixODBC-2.2.11 # ./configure --prefix=/usr/local/unixODBC --enable-gui=no 阅读全文
posted @ 2018-05-30 15:03 michael_YM 阅读(5710) 评论(0) 推荐(0) 编辑

2018年1月17日

摘要: 1)安装R程序包knitr,写markdown,需要安装生成pdf的工具MikTex,RTools(RTools 需要安装吗?待验证) 安装 R package — rmarkdown, Yaml Header参数 this is yaml header 生成pdf的Rmd文件中,设定 "outpu 阅读全文
posted @ 2018-01-17 09:34 michael_YM 阅读(2050) 评论(0) 推荐(0) 编辑

2017年7月11日

摘要: 真正成功的球员,就像是球场上的艺术家,都有自己的比赛风格,如麦蒂 雷阿伦 艾弗森等,科比也是,非常是;他的单打具有很强的技巧,还有娴熟的投篮,灵巧的突破,强硬的比赛风格,这些都是科比的标志,他打球的方式跟他的性格一样,都是偏执不屈型;其实,很少有球员会一直投篮直到拿81分,求胜欲如此强烈,是不是很科 阅读全文
posted @ 2017-07-11 10:58 michael_YM 阅读(348) 评论(0) 推荐(0) 编辑

2017年6月29日

摘要: 用python抓百度指数,参考的文章是 https://github.com/TTyb/Baiduindex ,或者看这里 http://www.cnblogs.com/TTyb/p/6051366.html ,这两篇文章是一样的; 需要注意的地方是: 1)安装 selenium2.45 和 Fir 阅读全文
posted @ 2017-06-29 09:13 michael_YM 阅读(803) 评论(5) 推荐(1) 编辑

2017年6月14日

摘要: browser.find_element_by_id("schword").send_keys(keyword) send_keys如果传中文,应写为 keyword = u"你的关键词",如果是从文件读取,通过这个方法读文件时,file = codecs.open('keywords.txt', 阅读全文
posted @ 2017-06-14 14:20 michael_YM 阅读(14503) 评论(0) 推荐(0) 编辑

2017年6月13日

摘要: test_import_file.py,在当前目录 hello.py,在上一个目录 阅读全文
posted @ 2017-06-13 14:35 michael_YM 阅读(185) 评论(0) 推荐(0) 编辑

2017年6月9日

摘要: 参考资料: http://www.cnblogs.com/TTyb/p/5842015.html http://www.tybai.com/crawler/8_%E6%B5%8F%E8%A7%88%E5%99%A8%E7%99%BB%E9%99%86.html 注意需要安装 selenium-2.4 阅读全文
posted @ 2017-06-09 16:30 michael_YM 阅读(137) 评论(0) 推荐(0) 编辑
摘要: 参考:http://www.cnblogs.com/TTyb/p/5996847.html 1、pip3 install pyocr 2、pip3 install pillow or easy_install Pillow 3、安装tesseract-ocr:http://jaist.dl.sour 阅读全文
posted @ 2017-06-09 16:14 michael_YM 阅读(227) 评论(0) 推荐(0) 编辑

2017年5月16日

摘要: cl = makePSOCKcluster(10) roll = ugarchroll(myspec, rlogdiff, n.start = 200,refit.every = 20, refit.window = "moving", solver = "hybrid", calculate.Va 阅读全文
posted @ 2017-05-16 11:31 michael_YM 阅读(1022) 评论(0) 推荐(0) 编辑

导航