在数组中,类型非常明确,因为类型是强类型的,int只能包含整数,所以在循环中没有类型转换。
In arrays, this was very specific, as arrays are strongly typed — an int can only contain ints — and therefore there are no typecasts in the loop.
改变了类型强制规则,以保持数组(更为常见)中的类型 ,而不是转换为Python 标量的类型。
The type coercion rules have changed to preserve types in arrays (more often), rather than converting to the type of a Python scalar.
数组第三个元素是该任务类型的分数,所以我必须调用to_s方法,将该整数转换为字符串。
The third element of the array is the number of points for this assignment type, so I have to invoke the to_s method to convert that integer into a string.
回忆一下,传递数组或函数类型实参的时候,该实参自动转换为一个指针。
Recall that when we pass an argument of array or function type, that argument is automatically converted to an pointer.
将数组转换为指向数组类型的指针,将函数转换为指向函数类型的适当指针。
An array is converted to a pointer to the type of the array; a function is converted to the appropriate pointer to function type.
必须可以在两个数组的元素类型间进行转换(扩大转换或收缩转换)。
A conversion, either widening or narrowing, must be possible between the element types of the two arrays.
首先,将数组标识符转换为类型化数组,后者用于初始化类型化数组。
First, the array literal is converted to a typed array, which is used to initialize the typed array.
数组标识符中的数据必须可转换为类型化数组的数据类型。
The data in the array literal must be convertible to the data type of the typed array.
下面的代码示例创建了一个编写器,编写器是一个可以获取某些类型的数据并将其转换成可传递到流的字节数组的类。
The following code example creates a writer, which is a class that can take data of some type and convert it to a byte array that can be passed to a stream.
一种数组类型到另一种数组类型的转换是扩展转换还是双字节到单字节转换,取决于各自元素的转换是扩展转换还是双字节到单字节转换。
A conversion of one array type to another is widening or narrowing depending on whether the conversion of the respective elements is widening or narrowing.
确定此转换器是否可以将指定数据类型的对象转换为包含个别字体名称的字符串数组。
Determines whether this converter can convert an object of the specified data type to an array of strings containing individual font names.
确定此转换器是否可以将指定数据类型的对象转换为包含个别字体名称的字符串数组。
Determines whether this converter can convert an object of the specified data type to an array of strings containing individual font names.
应用推荐