What is the difference between a list and a string?单项选择题

A

lists are sequences but strings are not and therefore you cannot access a string element using []

B

lists are immutable, but strings can be changed

C

lists can hold values of any type, whereas strings are only sequences of characters

D

elements in a list can be accessed using an integer as the index value, but strings can use any numeric data type for the index

登录即可查看完整答案

我们收录了全球超50000道真实原题与详细解析,现在登录,立即获得答案。

更多留学生实用工具

加入我们,立即解锁 海量真题独家解析,让复习快人一步!