第26244题 单选
执行给定Python代码后,输出的结果是?
matrix = [[1, 2, 3], [4, 5, 6], [7, 8, 9]]
total = 0
for row in matrix:
    for element in row:
        if element % 2 == 0:
            total += element
print(total)
A

4

B

10

C

20

D

25

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