You can split a Ruby string into an array of characters by using the chars method, for example, like so: chars_arr = "foo bar".chars print ...
確定! 回上一頁