题库首页 › 青少年软件编程(Python) › 题目 15793

阅读以下代码,游标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六级真题

本卷相关题目

在线做题 同科目题库