数组第三个元素是该任务类型的分数,所以我必须调用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.
对于不能将字符串转换为整数的情况,将在目标字段中使用一个用户指定的默认整数。
In cases where the string cannot be converted to an integer, a user-specified default int is placed in the target field.
要将布尔值或整数存储到项目集,需要将该值转换为字符串。
To store a boolean value or an integer to the item set, the value needs to be converted to a string.
应用推荐