第12535题 单选题
给定Python操作SQLite的程序及student表数据,求程序执行后打印的结果
import sqlite3
conn = sqlite3.connect('cj.db')
cur = conn.cursor()
a = cur.execute("SELECT * FROM student").fetchall()
conn.commit()
conn.close()
s = 0
for i in a:
    s = s + i[1]
print(s)

cj.dbstudent表内容如下: | name | math | chinese | |--------|------|---------| | 李雷 | 100 | 99 | | 韩小 | 98 | 91 | | 张晓宇 | 96 | 99 |

A

100

B

294

C

289

D

李雷

程序运行统计
暂无判题统计