a = "hello world and itcast and hello itheima and PYTHON" print(a.startswith("hello",0,4))
为什么结果是false呢,0到四个字符明明是hello,满足hello开头啊
a = "hello world and itcast and hello itheima and PYTHON" print(a.startswith("hello",0,4))
为什么结果是false呢,0到四个字符明明是hello,满足hello开头啊
a = "hello world and itcast and hello itheima and PYTHON"
print(a.startswith("hello",0,5))
hello的长度是5
如果对你有帮助,可以点击我这个回答右上方的【采纳】按钮,给我个采纳吗,谢谢