The bracketoperator is used to retrieve elements of arrays and collections.
方括号运算符用来检索数组和集合的元素。
2
And you access all the items in the same way using the square bracketoperator, which supports slicing different types of sequential items.
并且可以使用方括号操作符以相同的方式访问所有数据项,它支持将不同类型的有序数据项分段。
3
Unlike strings, lists are mutable. When the bracketoperator appears on the left side of an assignment, it identifies the element of the list that will be assigned.