W3School TIY Editor
W3School 在线教程
改变方向
暗黑模式
python_ref_string_find_1.py:
txt = "Hello, welcome to my world." x = txt.find("welcome") print(x)
x
txt
=
"Hello, welcome to my world."
x
=
txt
.
find
(
"welcome"
)
print
(
x
)