3
A
回答
3
你可以使用默认的包,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.]])
相关问题
- 1. Swift Sorting Array <Array <AnyObject>>
- 2. ArrayList的<String>定义适配器
- 3. Python DBAPI超时连接?
- 4. 不能从'cli :: array <Type> ^'转换为'cli :: array <Type> ^'
- 5. const boost :: array <T,N>或boost :: array <const T,N>?
- 6. |,>和<in numpy datatype
- 7. Array或Array <Element> in Swift
- 8. controller_test:NoMethodError:undefined method#permit'for#<Array:0x98583f0>
- 9. Observable <Array<T>> to Observable <T>
- 10. 为什么“testScores [”dave“]”的类型是“可选<Array<Int>> .Type”而不是“<Array<Int>> .Type”
- 11. 如何使用Eigen 3表示“<真或假> = <array><= <scalar>”?
- 12. 绑定的ArrayList <ArrayList<>>在自定义适配器在Android中
- 13. std :: tr1 :: array <int, 16>>
- 14. 无法转换类型'Array <String>?'的值指定类型'Array <String>?'
- 15. 更改自定义适配器列表<String>
- 16. Numpy array dimensions
- 17. Numpy masked array modification
- 18. Numpy Array Subtraction
- 19. Numpy matrix to array
- 20. python numpy array/dict多重继承
- 21. 在Python中读取ASCII文件(numpy-array?)
- 22. 适合<svg>到<object>容器的大小
- 23. AutoCompleteTextView在适配器中的搜索输入密钥<T>
- 24. <同步适配器>元素无法识别
- 25. Android的SQL数据库适配器保持使用适配器</p> <pre><code>db = new DBAdapter(this); db.open(); String strname = roomid; Cursor c = db.getAsset(strname); if (c.moveToFirst()) DisplayContact(c); db.close(); </code></pre> <p>问题我已经是全班轰然
- 26. std :: array <bool>的性能对比std :: vector <bool>
- 27. Subset a 3D numpy array
- 28. 当<ui:repeat>适用于X,但<c:forEach>适用于Y
- 29. onItemClick <string-array> strings.xml(不是ListView/ArrayList)
- 30. while(<@array>)perl的效果