Finally, we can use pattern matching to pull out the elements from a list or tuple using the construct notation mentioned earlier.
最后,可以按前面提到的构造表示方法,使用模式匹配从列表或元组中提取元素。
Defining axes and points is fairly obvious once you recognize the Python-like slice notation to create a list of Numbers.
定义数轴和端点,如果您识得创建一列数字的类Python片段符号,这是相当显而易见的。
Thus, you can create a list using a constructor, in addition to the shorthand notation of using the square brackets.
因此,使用构造函数及方括号简化符号,可以创建list。
Like the attributes, the operations of a class are displayed in a list format, with each operation on its own line. Operations are documented using the following notation.
和属性一样,类的操作以列表格式显示,每个操作在它自己线上。
In the diagram below, the notation "[0] DataObject" has been used to signify the first entry in the list of address DataObjects.
在下图中,“[0]DataObject”标记用于表示地址DataObjects列表中的第一个条目。
Using this notation, you should know that search through a list is O(n) and binary search (through a sorted list) is log(n).
看到这个标记你就应该知道搜索链表的复杂度为O(n),进行二进制搜索时(已排序)的空间复杂度为log(n)。
The notation declaration gives an internal name to an existing notation so that it can be referred to in attribute list declarations, unparsed entity declarations, and processing instructions.
表示法声明为现有表示法提供内部名称,以便可以在属性列表声明、未分析实体声明和处理指令中引用。
Just like getting individual items out of a list, you can get individual characters out of a string using index notation.
与取得列表中的元素一样,也可以通过下标记号取得字符串中的某个字符。
Just like getting individual items out of a list, you can get individual characters out of a string using index notation.
与取得列表中的元素一样,也可以通过下标记号取得字符串中的某个字符。
应用推荐