📜  在 str python 代码示例中查找 char

📅  最后修改于: 2022-03-11 14:45:16.936000             🧑  作者: Mango

代码示例1
>>> str = "Messi is the best soccer player"
>>> str.find("soccer")
18
>>> str.find("Ronaldo")
-1
>>> str.find("Messi")
0