在Ruby中,使用
String#include?
str = "hello how are you?"substr = "how are"str.include? substr
返回
true
上一篇 Java中的默认种子PRNG
下一篇 正则表达式在Java字符串中查找特定单词
版权所有 (c)2021-2022 MSHXW.COM
ICP备案号:晋ICP备2021003244-6号