python判断字符串是否包含另一字符串的方法 2022-03-11 00:00:00 判断 字符串 包含 方法一 contains = 'abcde'.find('bcd') >= 0 方法二 contains = 'abcde'.count('bcd') > 0 相关文章