W3School TIY Editor
W3School 在线教程
改变方向
暗黑模式
python_ref_string_lstrip_1.py:
txt = " banana " x = txt.lstrip() print("of all fruits", x, "is my favorite")
x
txt
=
" banana "
x
=
txt
.
lstrip
()
print
(
"of all fruits"
,
x
,
"is my favorite"
)