标签:size order jid 字符串翻转 jmx 位置 https mil 翻转
There is more than one way to do it.
"banana".comb; # => (b a n a n a)
chars "banana"; "banana".chars; # => 6
index "banana", "na"; # => 2
index "banana", "ni"; # => Nil
index "banana", "na", 3; # => 4
index "banana", "na", 5; # => Nil
rindex "banana", "na"; # => 4
rindex "banana", "na", 3; # => 2
substr "I have a dream", 0, 6; # => I have
"I have a dream".substr(9, 5); # => dream
substr "I have a dream", 9, 10; # => dream
substr "I have a dream", *-5; # => dream
flip "banana"; # => ananab
split "-", "2017-09-06"; # => (2017 09 06)
"ba" ~ "na"; # => bana
join "-", <I have a dream>; #=> I-have-a-dream
lc "April"; # => "april"
uc "april"; # => "APRIL"
tc "april"; # => "April"
标签:size order jid 字符串翻转 jmx 位置 https mil 翻转
原文地址:http://www.cnblogs.com/wander4096/p/7482740.html