上一篇博客,介绍了列表类型,本篇将介绍数组类型Array、字典类型(Map),以及可变数组(ResizeArray)、Set类型。 一、数组类型 (Array) 数组类型,在语义上表示一组相同类型的集合。
基于16个网页-相关网页
And I pointed out that lists are mutable, showed you some examples of mutation.
我提到了数组是可变的,并给你们举了一些例子。
Lists differ from strings in two ways; one way is that it's mutable, the other way is that the values need not be characters. They can be numbers, they can be characters, they can be strings they can even be other lists.
有两个不同之处,一个在于数组是可变的;,另一点在于数组里面的值,不一定是字符,可以是数,可以是字符,也可以是字符串,甚至可以是其他的数组。
应用推荐