使用Python语言对SQLite数据库进行操作,下面代码空白处需填入?( ) import sqlite3 conn = sqlite3. ('example.db') cursor = conn.cursor() cursor.execute('CREATE TABLE IF NOT EXISTS users (id INTEGER PRIMARY KEY, name TEXT, age INTEGER)') conn.commit() conn.close()
A:connect( )
B:execute( )
C:fetchall( )
D:fetchone( )
正确答案:A
试卷来源:202412 青少年软件编程等级考试Python六级真题