a=[[1,3,6,9],[2,4,7,5],[5,2,3,8]]
b=[1]; n=len(a)
for i in range(n):
for j in range(n+1):
if i < j and a[i][j] not in b:
b.append(a[i][j]) #b 追加一个元素 a[i][j]
执行该程序执段后,数组 b 中的元素为( )
A.[1, 3, 6, 9, 7, 5, 8] |
B.[3, 6, 9, 7, 5, 8] |
C.[1 ,3, 6, 9 ,2 ,4 ,7, 5 ,8] |
D.[1, 3, 6, 9, 4 ,7, 5, 8] |

同类型试题

y = sin x, x∈R, y∈[–1,1],周期为2π,函数图像以 x = (π/2) + kπ 为对称轴
y = arcsin x, x∈[–1,1], y∈[–π/2,π/2]
sin x = 0 ←→ arcsin x = 0
sin x = 1/2 ←→ arcsin x = π/6
sin x = √2/2 ←→ arcsin x = π/4
sin x = 1 ←→ arcsin x = π/2


y = sin x, x∈R, y∈[–1,1],周期为2π,函数图像以 x = (π/2) + kπ 为对称轴
y = arcsin x, x∈[–1,1], y∈[–π/2,π/2]
sin x = 0 ←→ arcsin x = 0
sin x = 1/2 ←→ arcsin x = π/6
sin x = √2/2 ←→ arcsin x = π/4
sin x = 1 ←→ arcsin x = π/2

