sh_17_字符串的查找和替换

  sh_17_字符串的查找和替换html hello_str = "hello world" # 1. 判断是否以指定字符串开始 print(hello_str.startswith("Hello")) # 2. 判断是否以指定字符串结束 print(hello_str.endswith("world")) # 3. 查找指定字符串 # index一样能够查找指定的字符串在大字符串中的索引
相关文章
相关标签/搜索