Zdobądź rzędy mysql Python

cursor.rowcount # would give you the rows affected
sandy_codes_py