python
文章平均质量分 73
hanphy
-
展开
-
Python 读写数据库(MySQLDB)
用MySQLDB需要先安装:yum install MySQL-python.x86_64updateimport datetimeimport MySQLdbconn= MySQLdb.connect( host='myservicedatabase.host.name.or.ip', port = 330原创 2018-02-01 19:05:12 · 655 阅读 · 0 评论 -
Python数据库与DataFrame
Python数据库与DataFrame安装必须的包:pip install sqlalchemypip install pandaspip install pymysql用交互式 python:>>> import pandas as pd>>> from sqlalchemy import create_engine>>>>>> db_info = {'us原创 2018-02-01 19:12:49 · 664 阅读 · 0 评论