在数组中,类型非常明确,因为类型是强类型的,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.
应用推荐