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

题目详情

单选题 关于python中的集合,请分析以下代码:student={'Tom','Jim','Mary','Tom','Jack','Rose'}print(student[3:-1])其输出结果是( )

A. {'Mary','Tom','Jack','}

B. { 'Mary','Tom','Jack','Rose'}

C. { 'Tom','Jack'}

D. TypeError: 'set' object is not subscriptable

大学计算机—Python程序设计基础课程封面

学科:大学计算机—Python程序设计基础

时间:2023-05-08 09:09:26

Copyright © 2022 津ICP备2021001502号