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
(1062, "Duplicate entry '10' for key 'PRIMARY'")
运行之后出现这个!!!求解
运行之后出现这个!!!求解
2017-11-16