小编Shi*_*man的帖子

Ruby数组到字符串的转换

我在一个数组中有一堆URL链接,例如,

urls = [["www.google.com"], ["www.yahoo.com"]]
#I want the urls variable to be like this below
urls = ["google.com", "www.yahoo.com"]
#I want to break up the sub-arrays in urls.
Run Code Online (Sandbox Code Playgroud)

任何帮助,将不胜感激.

ruby arrays

-1
推荐指数
1
解决办法
125
查看次数

标签 统计

arrays ×1

ruby ×1