Convert an array of integers into an array of strings in Ruby?

后端 未结 7 1012
野的像风
野的像风 2020-12-12 18:47

I have an array:

int_array = [11,12]

I need to convert it into

str_array = [\'11\',\'12\']

I\'m new to t

7条回答
提交回复
热议问题