返回顶部

收藏

enter a string as the argument to []=, and it will return the new, corrected string, if found; nil otherwise.

更多
speaker = 'this is a test, 2007'
speaker[', 2007']= 'III' # => 'III'
p speaker 

标签:Ruby,String

收藏

0人收藏

支持

0

反对

0

发表评论