python变量中存储的行数
db= MySQLdb.connect("HOSTNAME", "USER_NAME", "PWD", "DB_NAME"); cursor= db.cursor(); number_of_rows = cursor.execute("SELECT COUNT (*) FROM TBL"); print(number_of_rows);