请问该如何在Ruby中使用字符串方法?

如何在Ruby中使用字符串方法


ibeautiful
浏览 768回答 4
4回答

慕田峪7331174

c中是strstr.ruby 1.9.3中包含:include? other_str → true or false click to toggle sourceReturns true if str contains the given string or character."hello".include? "lo" #=> true"hello".include? "ol" #=> false"hello".include? ?h #=> true
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

Ruby
ZBrush