📅  最后修改于: 2022-03-11 14:46:36.677000             🧑  作者: Mango
代码示例3
>>> str = "Messi is the best soccer player"
>>> str.find("soccer")
18
>>> str.find("Ronaldo")
-1
>>> str.find("Messi")
0