W3School TIY Editor
W3School 在线教程
改变方向
暗黑模式
python_ref_string_partition_1.py:
txt = "I could eat bananas all day" x = txt.partition("bananas") print(x)
x
txt
=
"I could eat bananas all day"
x
=
txt
.
partition
(
"bananas"
)
print
(
x
)