阅读以下代码,游标cursor被用来执行SQL查询并获取查询结果。( ) import sqlite3 conn = sqlite3.connect('example.db') cursor = conn.cursor() cursor.execute('SELECT * FROM table_name') rows = cursor.fetchall() for row in rows: print(row) cursor.close() conn.close()
A:对
B:错
正确答案:正确
试卷来源:202412 青少年软件编程等级考试Python六级真题