rs = cursor.fetchall()
for row in rs:
print "id=%s, uid=%s, name=%s, coins=%s, balance=%s, cdate=%s " % row
为啥我这样打印失败了
for row in rs:
print "id=%s, uid=%s, name=%s, coins=%s, balance=%s, cdate=%s " % row
为啥我这样打印失败了
2017-12-09
import MySQLdb
print MySQLdb
输出
Traceback (most recent call last):
File "mysqlDB", line 1, in <module>
import MySQLdb
File "C:\Python27\lib\site-packages\MySQLdb\__init__.py", line 19, in <module>
import _mysql
ImportError: DLL load failed: %1 ������Ч�� Win32 Ӧ�ó���
print MySQLdb
输出
Traceback (most recent call last):
File "mysqlDB", line 1, in <module>
import MySQLdb
File "C:\Python27\lib\site-packages\MySQLdb\__init__.py", line 19, in <module>
import _mysql
ImportError: DLL load failed: %1 ������Ч�� Win32 Ӧ�ó���
2017-12-06