ruby判断字符串中是否有某个字符串

有a.index

a.count

两种方式

需要谨慎选择

原文地址:https://www.cnblogs.com/lexus/p/1913302.html