元组 - 翻译成英语

tuple
元组
tuples
元组

在 中文 中使用 元组 的示例及其翻译为 英语

{-}
  • Political category close
  • Ecclesiastic category close
  • Programming category close
地图获取一组数据并将其转换为另一组数据,其中单个元素分解为元组(键/值对)。
Map takes a set of data and converts it into another set of data, where individual elements are broken down into tuples(key/value pairs).
在输入时可能有或没有括号,不过括号通常是必须的(如果元组是更大的表达式的一部分)。
There may or may not be parentheses when typing, but parentheses are usually required(if the tuple is part of a larger expression).
还有一个方法,也可以添加元素,且参数可以是列表,元组,字典等,语法格式如下:.
There is also a method, you can also add elements, and the parameters can be lists, tuples, dictionaries, etc. The syntax is as follows.
Get<T>()标准库现在支持get<T>()模板函数以允许元组元素按其类型进行寻址。
Get<T>() The standard library now supports the get<T>() template function to allow tuple elements to be addressed by their type.
PigLatin中的关系是无序的(不能保证按任何特定顺序处理元组)。
The relations in Pig Latin are unordered(there is no guarantee that tuples are processed in any particular order).
还可以使用多变量赋值创建返回多值的函数,只需返回一个包含所有值的元组
You can also use multi-variable assignment to build functions that return multiple values, simply by returning a tuple of all the values.
Map采用一组数据并将其转换为另一组数据,其中各个元素被分解为元组(键/值对)。
Map takes a set of data and converts it into another set of data, where individual elements are broken down into tuples(key/value pairs).
它们可以在有或没有环绕括号的情况下输入,尽管经常括号是必要的(如果元组是较大表达式的一部分)。
They may be input with or without surrounding parentheses, although often parentheses are necessary anyway(if the tuple is part of a larger expression).
它是一个元素表(通常是数字),都是相同类型的,由正整数元组索引。
It is a table of elements(usually numbers), all of the same type, indexed by a tuple of positive integers.
因此,如果你的清单是不可能改变的,你应该使用元组,而不是列表。
Hence, if your list is not likely to change, paramount essays com you ought to use tuples, rather than lists.
以下是一种很酷的编程捷径:在Python中,可使用元组来一次赋多值。
Here's a cool programming shortcut: in Python, you can use a tuple to assign multiple values at once.
Python有六种内置类型的序列,但最常见的是列表和元组,我们将在本教程中看到。
Python has six built-in types of sequences, but the most common ones are lists and tuples, which we would see in this tutorial.
在输入时可以有或没有括号,不过经常括号都是必须的(如果元组是一个更大的表达式的一部分)。
There may or may not be parentheses when typing, but parentheses are usually required(if the tuple is part of a larger expression).
与字符串索引一样,元组索引从0开始,它们可以被切片,连接等等。
Similar to string indices, list indices start at 0, and lists can be sliced, concatenated and so on.
但是,你也可以将轴指定为元组,计算最后两个轴的平均值,这应该比重新整形更有效:.
However, you can also specify axis as a tuple, computing a mean over the last two axes, which should be more efficient than reshaping.
您可以在这里声明sum,count,然后元组便会立刻解构为sum变量和count变量。
You can say sum, count here, and now the tuple immediately gets deconstructed into a sum variable and a count variable that get declared.
跟大多数编程语言一样,元组的第一个索引值是0。
As with most programming languages, the first index in a tuple is 0.
注意,元组元素以1作为第一个值的索引,而不是像其他大多数语言中那样从0开始。
Note that the elements of the tuple are indexed with 1 as the first value, instead of 0, which is common in most other languages.
Tup变量绑定了整个元组,因为元组被认为是一个单独的复合元素。
The variable tup binds to the entire tuple, since a tuple is considered a single compound element.
示例18-4:使用模式解构元组并一次创建三个变量.
Listing 18-4: Using a pattern to destructure a tuple and create three variables at once.
结果: 219, 时间: 0.0206

顶级字典查询

中文 - 英语