Python字符串内建函数

字符串内建函数 - find函数 #find函数(查找and是否在string_example字符串中) string_example = "hello world itheima and itheimaApp" index = string_example.find("and") print(index) #若未找到则返回-1 index1 = string_example.find("ans"
相关文章
相关标签/搜索