无可避免的需要使用数据库,而我所知的开源数据库中,postgresql有个很大的特点,就是对地理数据支持度较高。无可避免的又要用python去操作,那。。。...'''
pm2.5-数据库
'''
import psycopg2
conn=psycopg2.connect(database="postgres",user="postgres",password=...host="127.0.0.1",port="5432")
cur = conn.cursor()
cur.execute("CREATE TABLE mxndata1(data timestamp,point...=# create table mxndata1
postgres-# (data timestamp,point varchar,long double precision,lat double precision...TABLE mxndata1();")
cur.copy_from(StringIO(output1), 'mxndata1',columns=('data','point','long','lat'