下面的代码输出结果是()s =["seashell","gold","pink","brown","purple","tomato"]print(s[1:4:2])
A. ['gold', 'pink', 'brown']
B. ['gold', 'pink']
C. ['gold', 'pink', 'brown', 'purple', 'tomato']
D. ['gold', 'brown']
max( [1, 2, 3] * 2 ) 的结果是()
A. 4
B. 6
C. 3
D. 12
下列程序执行后,p的值是()。a = [ [ 1, 2, 3 ], [ 4, 5, 6 ], [ 7, 8, 9 ] ]p = 1for i in range( len(a) ):p *= a[i][i]
A. 45
B. 15
C. 6
D. 28
下列代码的运行结果是()s = [1, 2, 3, 4]s.append( [5, 6] )s.append( 7 )print( len( s ) )
A. 4
B. 5
C. 6
D. 7