下面代码的输出结果是() a=list('abc') print('#'.join(a+['1','2']))
A: abc
B: 12
C: abc
D: 1
E: 2
F: a
G: b
H: c
I: 12
J: a
K: b
L: c
M: 1
N: 2
A: abc
B: 12
C: abc
D: 1
E: 2
F: a
G: b
H: c
I: 12
J: a
K: b
L: c
M: 1
N: 2
举一反三
- 运行下面程序的输出结果是()[br][/br]a = list("abc") print("#" .join(a)) A: abc B: abc C: D: E: abc F: a G: b H: c
- 以下代码的输出结果是(_____)。L1 =['abc', ['123','456']] L2 = ['1','2','3'] print(L1 > L2) A: False B: True C: TypeError: '>' not supported between instances of 'list' and 'str' D: 1
- 代码 print( 1 if 'a' in 'ABC' else 2)执行结果是()。 A: 1 B: 2 C: 报错 D: True
- 如下程序的输出结果是:L1 =[‘abc’, [‘123’,‘456’]]L2 = [‘1’,‘2’,‘3’]print(L1 >; L2) A: False B: TypeError: ‘>;’ not supported between instances of ‘list’ and ‘str’ C: 1 D: True
- 以下程序的输出结果是: L1 =['abc', ['123','456']] L2 = ['1','2','3'] print(L1 > L2) A: TypeError: '>' not supported between instances of 'list' and 'str' B: False C: True D: 1