deepfos.lib.utils.find_str

deepfos.lib.utils.find_str(target, candidates, ignore_case=False)

查找目标字符串

>>> find_str('foo', ['foo', 'bar'])
'foo'
>>> find_str('foo', ['Foo', 'bar']) is None
True
>>> find_str('foo', ['Foo', 'bar'], ignore_case=True)
'Foo'
返回类型

Optional[str]