在 cythonizing 期间如何 cdef pyodbc 行?

How cdef pyodbc rows during cythonizing?

要对下面的代码进行cythonize化,我应该如何定义行和行?

conn_string = (
    r'DRIVER={Microsoft Access Driver (*.mdb)};'
    r'DBQ=C:\Temp.mdb;')
conn = pyodbc.connect(conn_string)
cursor = conn.cursor()
SQL = "SELECT number, address FROM data;"
rows = cursor.execute(SQL).fetchall()
cursor.close()
for row in rows:
    number = row[1]

正如@DavidW在评论中提到的,不需要为行和行定义类型,即python代码没有任何变化,.c生成成功。