我正在找string.contains或者string.indexof方法.
string.contains
string.indexof
我希望:
if not somestring.contains("blah"): continue
你可以用in啊:
in
if not "blah" in somestring: continue
或者:
if "blah" not in somestring: continue