... 下标运算子[]下标操作符:subscript operator 下标列表:subscript list 下标量:subscript quantity ...
基于112个网页-相关网页
列表及下拉列表的标签 Lists & Dropdown tags
与取得列表中的元素一样,也可以通过下标记号取得字符串中的某个字符。
Just like getting individual items out of a list, you can get individual characters out of a string using index notation.
用户可以通过整数下标(列表中的位置)访问、查找列表中的元素。
The user can Access elements by their integer index (position in the list), and search for elements in the list.
因此如果调用者不了解实现方式,通常应该遍历列表元素,这比指定下标位置更可取。
Thus, iterating over the elements in a list is typically preferable to indexing through it if the caller does not know the implementation.
应用推荐