11 2016 档案

摘要:1.列表推导式: res = [func(x) for x in iterable] 跟内建的map函数一个效果:res = list(map(func,iterable)) 也就是: func(x) for x in iterable == map(func,iterable) 结果解析:遍历it 阅读全文
posted @ 2016-11-17 16:56 whiteprism 阅读(243) 评论(0) 推荐(0)
摘要:1.安装pymongo库 pip install pymongo 或者 easy_install install pymongo 2.使用pymongo模块连接mongoDB数据库 阅读全文
posted @ 2016-11-15 17:16 whiteprism 阅读(19266) 评论(1) 推荐(0)
摘要:lt:less than,小于 gt:greater than,大于 eq:equal,等于 le:less equal,小于等于 ge:greater than,大于等于 阅读全文
posted @ 2016-11-11 13:36 whiteprism 阅读(180) 评论(0) 推荐(0)
摘要:2016-11-10 保持开放的心态,不带偏见的去尝试一切可以接触到的,甚至是你之前认为自己完全不可能接受的东西,有可能才最适合现在的你。 2016-11-15 嘴上说不谈恋爱的人,心里都住着一个不可能的人。 2016-11-17 没有爱情不会死,但有爱会让你活过来。 阅读全文
posted @ 2016-11-10 16:22 whiteprism 阅读(111) 评论(0) 推荐(0)
摘要:事前准备: 1.在mongoDB官网下载.msi文件,我下的是社区版,下载地址:https://www.mongodb.com/download-center#community 2.点击msi文件安装mongoDB,默认安装在C:\Program Files\MongoDB\Server\3.2 阅读全文
posted @ 2016-11-08 21:45 whiteprism 阅读(1167) 评论(0) 推荐(0)