rank | vote | view | answer | url |
---|---|---|---|---|
9 | 3072 | 2877536 | 14 | url |
我正在找string.contains
或者string.indexof
方法.
我希望:
if not somestring.contains("blah"):
continue
你可以用in
啊:
if not "blah" in somestring: continue
或者:
if "blah" not in somestring: continue
rank | vote | view | answer | url |
---|---|---|---|---|
9 | 3072 | 2877536 | 14 | url |
我正在找string.contains
或者string.indexof
方法.
我希望:
if not somestring.contains("blah"):
continue
你可以用in
啊:
if not "blah" in somestring: continue
或者:
if "blah" not in somestring: continue