主页
Python
Python String startswith() 方法
demo_ref_string_startswith2
运行 ❯
×
更改方向
保存代码
更改主题
txt = "Hello, welcome to my world." x = txt.startswith("wel", 7, 20) print(x)
True