相关题目
81、下面代码的执行结果是()。
ls=[[1,2,3],[[4,5],6],[7,8]]
print(
80、下面代码的输出结果是()。
s =["seashell","gold","pink","brown","purple","tomato"]
print(s[4:])
79、关于Python的组合数据类型,以下选项中描述错误的是()。
78、以下程序的输出结果是()。
frame = [[1,2,3],[4,5,6],[7,8,9]]
rgb = frame[::-1]
print( )
77、以下程序的输出结果是()。
ls1 = [1,2,3,4,5]
ls2 = [3,4,5,6,7,8]
cha1 = []
for i in ls2:
if i not in ls1:
cha1.append( )
print(cha1)
76、ls = [1,2,3,4,5,6], 以下关于循环结构的描述,错误的是()。
75、下列程序段输出结果是()。
n = 1
def func( ):
global n
n = b
return a*b
s = func("knock~", 2)
print( )
74、下列程序段的运行结果是()。
n = 1
def func( ):
n = b
return a*b
s= func("knock~", 2)
print( )
73、下列程序段的运行结果是()。
n = 1
def func( ):
c = a * b
return c
func("knock~", 2)
print( )
72、下面程序的运行结果是()。
def f1( ):
s=1
i=1
while i<=p:
s=s*2
i=i+1
return s
def f2( ):
s=0
i=1
while i<=q:
s=s+2
i=i+1
return s
s=f1(5)+f2(10)
print( )
