For the use case of getting the index, use str.find (which returns -1 on failure, and has optional positional arguments): start = 0 stop = len(any_string) ...
確定! 回上一頁