因此,上面两个赋值语句创建相同的字符串值列表。
The two assignment statements above, therefore, both create the same list of string values.
和字符串不同的是,列表是可以修改的。方括号运算符放到一个赋值语句的等号左侧的时候,就会把对应位置的列表元素重新赋值。
Unlike strings, lists are mutable. When the bracket operator appears on the left side of an assignment, it identifies the element of the list that will be assigned.
应用推荐