The identifier is a tuple of the form {name, version}.
该标识符是形如 {名称, 版本}的元组。
Listing 1 USES a tuple of int, char, and float and prints the contents.
清单1使用int、char和float的元组并打印内容。
An assignment with a sequence on the right side and a tuple of variables on the left.
元组赋值:一种赋值语句,等号右侧用一个序列,左侧为一个变量构成的元组。
How to convert a tuple of vectors into a vector of tuples using the Cartesian product?
如何将一个元组向量为向量元组使用笛卡尔积?
Based on formal concept analysis, contexts are described as a tuple of two sets of conceptual graphs, which are called intention and extension respectively.
借鉴形式概念分析的理论,用二元组表示形式背景,能够体现出形式背景的内涵与外延的统一。
Each row of this table is a tuple consisting of the group name and user ID.
这个表中的每一行是一个由组名和用户ID组成的二元组。
Lists and tuples are similar, but whereas a tuple can only be used in a comparison, lists allow a wider variety of manipulation operations to be performed.
列表与元组相似,但是元组只能在比较中使用,而列表允许执行的操作更多。
The contents of a tuple do not all have to be the same type, but one special construct is of a tuple where the first value is an atom.
一个元组的内容不必都是相同类型的。元组的构造很特殊,其中的第一个值为原子值。
This query returns a result list each element of which is a Tuple.
这个查询返回一个结果列表,它的每个元素都是一个Tuple。
The two sides of the operation must match (that is, if you have 2 element tuple as the pattern, the expression must resolve to a 2 element tuple).
操作的两边必须匹配(也就是说,如果模式是包含两个元素的元组,那么表达式的计算结果也必须是包含两个元素的元组)。
Each tuple represents a pair of stock tickers and stock prices.
每个元组代表一对股票代码和股价。
This sets the maximum potential size of a tuple which we will store in the cache.
这设置了将要存储在缓存中的元组的最大可能大小。
The number of elements that can form a tuple is currently limited to 10.
能够形成元组的元素数量目前仅限于10个。
It is going to give me back a tuple a collection of two things, and so check out the syntax.
它将给我返回一个数组或者系列的一对值,然后检查一下语法。
Creating a tuple is a simple matter of putting the values inside a set of parentheses, almost as if they were inside a method call invocation.
创建元组非常简单,将值放入一组圆括号内,就好象调用一个方法调用一样。
A child of Or must add a _disjoins tuple as a class attribute.
Or的子类型必须添加一个_disjoins元组作为类属性。
And just like a tuple, a list can hold different types of data (or different types of objects). This is what I mean by a heterogeneous mutable sequence.
就像tuple一样,list也可以持有不同类型的数据(或不同类型的对象),这就是我所说的异构的可变序列。
If you recall, creating a single item tuple has the complication of requiring a comma following the single item.
如果您还记得的话,创建单个条目的tuple还需要在单个条目后面跟一个逗号。
You can create a tuple by simply assigning a sequence of objects, separated by commas, to a variable (see Listing 5).
您只需向变量分配一个用逗号分隔的对象序列,就可以创建一个tuple(参见清单5)。
When I introduced the Python tuple, I used the analogy of a bag into which you can throw different items.
在介绍Pythontuple 时,我使用了类比的方法,将其比做一个袋子,您可以在袋子中存放不同的东西。
Then we introduce the concept of a container type and focus on the Python tuple class as the first example of that type.
然后,我们将介绍容器类型的概念,并且将Pythontuple类作为此类型的第一个示例,进行重点介绍。
See how easy it is to create a tuple that can hold all kinds of items, including another tuple?
您会看到,创建可以拥有各种类型数据项(其中包括另一tuple)的 tuple是多么方便。
You can also combine slices of an existing tuple with a new tuple.
您还可以将现有tuple的片段与新tuple的片段合并在一起。
In this case, I join together a sequence of single-character strings contained in a tuple using the colon character.
在本例中,使用冒号将tuple包含的由单个字符构成的字符串序列连接在一起。
You also can create a tuple from a set of existing variables in a process called packing.
您还可以从称为打包的过程的一组现有变量中创建一个tuple。
To access individual elements of a tuple, you use the get routine.
要访问元组的各个元素,您可以使用get例程。
Note that it's also possible to set individual elements of a tuple using the get routine, although some compilers may not support this feature.
请注意,还可以使用get例程来设置元组的各个元素,虽然有些编译器可能不支持此功能。
In Listing 2, you can see that each element in a tuple can be of a different type, but the types in a list must be homogeneous.
在清单2中,可以看到tuple中的每个元素可以是不同类型的,但列表中的元素必须是相同类型的。
The serialization format used in ASP.NET 1.x for view state is a tuple format consisting of a hierarchical collection of triplets and pairs serialized using less-than and greater-than characters.
NET 1. x中使用的ViewState序列化格式是元组格式,由三个一组的层次集合和使用大于号和小于号的序列对组成。
This provides a great deal of flexibility because you can easily convert an existing sequence like a tuple or a string into a list, as shown in Listing 3.
这就提供了很大的灵活性,原因是您可以方便地将现有的序列,如tuple或string转换为list,如清单3所示。
应用推荐