![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
数据库
文章平均质量分 88
IT衡
这个作者很懒,什么都没留下…
展开
-
Using Databases with Python-Counting Organizations
Counting Organizations This application will read the mailbox data (mbox.txt) count up the number email messages per organization (i.e. domain name of the email address) using a database with the fol原创 2016-01-11 18:40:02 · 6738 阅读 · 0 评论 -
Using Databases with Python - Many students in many courses (produce database from json file)
This application will read roster data in JSON format, parse the file, and then produce an SQLite database that contains a User, Course, and Member table and populate the tables from the data file. D原创 2016-01-11 19:08:01 · 2976 阅读 · 2 评论 -
Using Databases with Python -Musical Track Database (produce database from XML file)
This application will read an iTunes export file in XML and produce a properly normalized database with this structure: CREATE TABLE Artist ( id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT UNIQUE原创 2016-01-11 18:55:25 · 6539 阅读 · 0 评论 -
MongoDB 基础知识
转自pantao :http://segmentfault.com/a/1190000002694268?_ea=184402#articleHeader8 基本概念 文档是 MongoDB 中数据的基本单元,非常类似于关系型数据库中的行,但更具有表现力;集合 Collection 可以看作是一个动态模式(Dynamic Schema)的表;MongoDB 的一个实例可转载 2016-01-11 13:53:56 · 455 阅读 · 0 评论 -
Mac OS install mongodb
1. install mongodb >>> brew install mongodb 2. create data directory >>> sudo mkdir -p /data/db 3. set permission for data directory >>> sudo chmod -R 777/data 4. run mongodb in frond ground(会停在原创 2016-01-10 20:22:04 · 470 阅读 · 0 评论 -
Appstore proj: Calculate an App's Top-5 related apps(2)
Save data into MongoDB instead of print, we do persist persist top 5 recommended apps in app_info 1. Persist top 5 apps in MongoDB 2. Do it for all apps loop through all apps, ge原创 2016-01-12 11:55:23 · 486 阅读 · 0 评论 -
Appstore proj: Calculate an App's Top-5 related apps(1)
How to calculate similarity? use cosine similarity! Edit helper.py. So you can call the function in helper class when needed >>> helper = Helper() similarity = helper.cosine_simil原创 2016-01-12 11:01:57 · 597 阅读 · 0 评论