python 字符串查找 之 str.find() s = 'abcdedfghi' s.find('a') # int 0 s.find('c') # int 2 s.find('I') # 不存在则返回 int -1 yield的用法python中yield的用法详解——最简单,最清晰的解释