A: ['2020', '1903', 'Python', 2050, 2020, '2020']
B: ['2020', '1903', 'Python', 2050, [2020, '2020']]
C: ['2020', '1903', 'Python', 2050]
D: ['2020', '1903', 'Python', 2050, [ '2020']]
举一反三
- 以下代码的输出结果是( )ls = [“2020”,”1903”,”Python”]ls.append(2050)ls.append([2020,”2020”])print(ls) A: [‘2020’,’1903’,’Python’,2020,[2050,’2020’]] B: [‘2020’,’1903’,’Python’,2020] C: [‘2020’,’1903’,’Python’,2050,[2020,’2020’]] D: [‘2020’,’1903’,’Python’,2050,[‘2020’]]
- 以下代码的输出结果是______。ls = ["2020", "20.20", "Python"]ls.append(2020)ls.append([2020, "2020"])print(ls) A: ['2020', '20.20', 'Python', 2020] B: ['2020', '20.20', 'Python', 2020, [2020, '2020']] C: ['2020', '20.20', 'Python', 2020, 2020, '2020'] D: ['2020', '20.20', 'Python', 2020, ['2020']]
- 以下代码的输出结果是( )。 ls = ["2020", "20.20", "Python"] ls.append([2020, "2020"]) [br][/br]print(ls) A: ['2020', '20.20', 'Python', [2020, '2020']] B: ['2020', '20.20', 'Python', 2020, ['2020']] C: ['2020', '20.20', 'Python', 2020,] D: ['2020', '20.20', 'Python', 2020, '2020']
- 下面代码的执行结果是( ) 。ls = ["2020", "20.20", "Python"] ls.append(2020)ls.append([2020, "2020"])print(ls) A: ['2020', '20.20', 'Python', 2020, 2020, '2020'] B: ['2020', '20.20', 'Python', 2020, [2020, '2020']] C: ['2020', '20.20', 'Python', 2020] D: ['2020', '20.20', 'Python', 2020, ['2020']]
- 下面代码的执行结果是: ls = ["2020", "20.20", "Python"] ls.append(2020) ls.append([2020, "2020"]) print(ls) A: ['2020', '20.20', 'Python', 2020, ['2020']] B: ['2020', '20.20', 'Python', 2020, 2020, '2020'] C: ['2020', '20.20', 'Python', 2020] D: ['2020', '20.20', 'Python', 2020, [2020, '2020']]
内容
- 0
下面代码的执行结果是:( )ls= [“2020”, “20.20”, “Python”]ls.append(2020)ls.append([2020, “2020”])print(ls) A: [‘2020’, ‘20.20’, ‘Python’, 2020] B: [‘2020’, ‘20.20’, ‘Python’, 2020, [2020, ‘2020’]] C: [‘2020’, ‘20.20’, ‘Python’, 2020, [‘2020’]] D: [‘2020’, ‘20.20’, ‘Python’, 2020, 2020, ‘2020’]r
- 1
3.下面代码的执行结果是( )。>>>ls = ["2020", "20.20", "Python"] >>>ls.append(2020)>>>ls.append([2020, "2020"])>>>print(ls) A: ['2020', '20.20', 'Python', 2020, [2020, '2020']] B: ['2020', '20.20', 'Python', 2020, 2020, '2020'] C: ['2020', '20.20', 'Python', 2020] D: ['2020', '20.20', 'Python', 2020, ['2020']]
- 2
下面代码的执行结果是: ls = [“2020”, “2020”, “Python”] ls.append(2020) ls.append([2020, “2020”]) print(ls): [‘2020’, ‘2020’, ‘Python’, 2020, 2020, ‘2020’]|[‘2020’, ‘2020’, ‘Python’, 2020, [2020, ‘2020’]]|[‘2020’, ‘2020’, ‘Python’, 2020, [‘2020’]]|[‘2020’, ‘2020’, ‘Python’, 2020]
- 3
ls = [“2020”, “20.20”, “Python”] ls.append(2020) ls.extend([2020, “2020”]) 执行完以上代码后ls的值是:
- 4
下面代码的执行结果是()。 ls = [“2020”, “20.20”, “Python”] ls.append(2020) ls.append([2020, “2020”])print(ls)