实习笔记 9:交易记录数据分析(先挖坑)
有之前一个月的参赛者的数据记录,锻炼下自己的数据分析能力。
环境准备:
1. python + mysql.
con = MySQLdb.Connect(host="127.0.0.1", port=3306, user="***", passwd="***", db="***",charset='utf8') cursor = con.cursor() sql='select * from table' num=cursor.execute(sql) for o in range(int(num)): option=cursor.fetchone() print option[1]
2. 数据分析
(挖坑,慢慢来,等过两天才能搞...)