질문 : 파이썬에 문자열 '포함'하위 문자열 메서드가 있습니까? Python에서 string.contains 또는 string.indexof 메서드를 찾고 있습니다. 나하고 싶어: if not somestring.contains("blah"): continue 답변 in 연산자를 사용할 수 있습니다. if "blah" not in somestring: continue 출처 : https://stackoverflow.com/questions/3437059/does-python-have-a-string-contains-substring-method