Quastion
I'm looking for a string.contains or string.indexof method in Python.
I want to do:
if not somestring.contains("blah"):
continue
Answers 1
You can use the in operator:
if "blah" not in somestring:
continue
Answers 2
If it's just a substring search...
2019년 8월 18일 일요일
Does Python have a string 'contains' substring method?
Quastion I'm looking for a string.contains or string.indexof method in Python. I want to do: if not somestring . contain...