以下代码的输出结果是lst = ['Tom', 'Mike', 'Peter']print( [ len(x) for x in lst if 'e' not in x ] )
A. [3, 4, 5]
B. [4, 5]
C. [3]
D. [5]
以下代码输出的结果是lst = ['Tom', 'Mike', 'Peter']print( [x[0] for x in lst if len(x)>3] )
A. ['Mike', 'Peter']
B. ['M', 'P']
C. ['Peter']
D. ['P']
下列代码的运行结果是s = [1, 2, 3, 4]s.append( 7 )print( len( s ) )
A. 4
B. 5
C. 6
D. 7
下列程序执行后,p的值是a = [ 3, 5, 7, 9 ]p = 0for i in a:p += i
A. 24
B. 4
C. 9
D. 14