下面代码的输出结果是s=["seashell","gold","pink","brown","purple","tomato"]print(s[1:4:2])


下面代码的输出结果是s=["seashell","gold","pink","brown","purple","tomato"]print(s[1:4:2])

A.[.gold.,.pink.,.brown.]

B.[.gold.,.pink.]

C.[.gold.,.pink.,.brown.,.purple.,.tomato.]

D.[.gold.,.brown.]

正确答案:D


Tag:计算机科学与技术 Python语言程序设计 代码 时间:2024-02-04 16:50:40