W3School TIY Editor
W3School 在线教程
改变方向
暗黑模式
python_ref_string_splitlines_2.py:
txt = "Thank you for the music\nWelcome to the jungle" x = txt.splitlines(True) print(x)
x
txt
=
"Thank you for the music\nWelcome to the jungle"
x
=
txt
.
splitlines
(
True
)
print
(
x
)