03 2017 档案

摘要:MySQL的group_concat函数实现多条记录合并,但没有去重功能。 阅读全文
posted @ 2017-03-16 14:52 Emily_zhu 阅读(191) 评论(0) 推荐(0)
摘要:http://www.crifan.com/files/doc/docbook/python_beginner_tutorial/release/htmls/ch04_python_dev_env.html#how_dev_python_in_window 比较全面的介绍了Python开发环境 阅读全文
posted @ 2017-03-14 11:40 Emily_zhu 阅读(223) 评论(0) 推荐(0)
摘要:震惊小伙伴的单行代码 Python篇 在网上看到有python2.7的单行代码(链接如上): 自学python3.x中,于是简单的想将2.x版翻译成3.x版。其中第7条实现还未成功。待了解xml后再尝试。 1、让列表中的每个元素都乘以2 2、求列表中的所有元素之和 3、判断一个字符串中是否存在某些词 阅读全文
posted @ 2017-03-10 18:11 Emily_zhu 阅读(289) 评论(0) 推荐(0)
摘要:注:在stackoverflow.com发现的一个回答。非常简单并且成功安装,在这里保存一下。 Question:How to install xgboost package in python (windows platform)? The Part Of Answer I Used: I jus 阅读全文
posted @ 2017-03-09 15:28 Emily_zhu 阅读(349) 评论(0) 推荐(0)
摘要:汉诺塔 杨辉三角 注:普通函数和generator生成器的区别:1.普通函数调用直接返回结果,generator函数的调用,返回一个generator对象;(调用generator时可以先创建一个对象,再用next()方法不断获得下一个返回值,但实际中通常用for循环实现) 2.generator在 阅读全文
posted @ 2017-03-07 11:30 Emily_zhu 阅读(239) 评论(0) 推荐(0)
摘要:The general form of data.table syntax is: .SD , .SDcols , .N 等 .SD stands for something like "Subset of Data.table". There's no significance to the in 阅读全文
posted @ 2017-03-06 17:34 Emily_zhu 阅读(283) 评论(0) 推荐(0)
摘要:data: have <- data.frame(ID=paste0("id", c(101, 102, 102, 103, 103, 104, 105, 105)), info1=c("one", "twoA", "twoB", "threeA", "threeB", "four", "five" 阅读全文
posted @ 2017-03-06 12:16 Emily_zhu 阅读(1434) 评论(0) 推荐(0)