Ruby?г????????String?????
???????????? ???????[ 2014/5/29 14:37:33 ] ????????Ruby String ????????????
????Ruby?г??????????????????
????1????str = String.new("abcd") #=>"abcd"
????2????str = "abcd" ?????????????????
????3????str = %{abcd} ????????????????????ε????????????????????????????е???????????????????????·???????
str1 = "ab"
str2 = "cd"
str = str1 + str2
str = "#{str1}#{str2}" ???#{}???????????????á?
|
????4????str = String.try_convert("abc") #=> "abc"
????5????str = %Q{abc} ???????????????????
????6????str = %q{abc} ???????????????????
???????︽??Ruby??????е????????????????????????????????????????????????????????????????????????滻????????????????????????????滻??
irb(main):067:0> str = "abc"
=> "abc"
irb(main):068:0> xx = "ss#{str}"
=> "ssabc"
irb(main):069:0> xx = 'ss#{str}'
=> "ss#{str}"
|
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11