题海让大学四年没有难题
白天模式登陆

题目详情

单选题 What will be the output of the following Python code? lst=[3,4,6,1,2] lst[1:2]=[7,8] print(lst) lst[3]=[9,10] print(lst)

A. [3, 7, 8, 6, 1, 2] [3, 7, 8, [9, 10], 1, 2]

B. [3,[7,8],6,1,2] [3, 7, 8, 9, 10, 1, 2]

C. [3,4,6,7,8] [9,10,4,6,7,8]

D. Syntax error

Python程序设计(双语)课程封面

学科:Python程序设计(双语)

时间:2023-09-27 03:19:43

Copyright © 2022 津ICP备2021001502号