除了atpy之外,还有什么适配器可以在numpy数组和sqlite数据库之间进行转换吗?
谢谢!
祝好,
KC
sqlite3
软件包吗?In [1]: import sqlite3
In [3]: conn = sqlite3.connect('test.db')
In [4]: cur = conn.cursor()
In [5]: cur.execute('select * from table1')
Out[5]: <sqlite3.Cursor object at 0xa3142c0>
In [6]: scipy.array(cur.fetchall())
Out[6]:
array([[ 1., 2.],
[ 3., 4.]])