随笔分类 -  ruby

摘要:定义:[1, 2, 3] # An array that holds three Fixnum objects[-10...0, 0..10,] # An array of two ranges; trailing commas are allowed[[1,2],[3,4],[5]] # An a... 阅读全文
posted @ 2015-11-27 17:20 道以万计 阅读(600) 评论(0) 推荐(0)
摘要:# definefrench_string = "il \xc3\xa9tait une fois"long_string = "1 and a 2 and a 3 and a "puts data.join(' and a ')# numbernumber = 5puts "The number... 阅读全文
posted @ 2015-11-26 17:50 道以万计 阅读(491) 评论(0) 推荐(0)