python's docs

django中如何使用splitlines

python中如何将多行string转换成list

>>> a = """good
... morning
... everyone"""
>>> a.split("\n")
['good', 'morning', 'everyone']
>>> a.splitlines()
['good', 'morning', 'everyone']

python中可以这样写,但是在django的views中,split("\n")不可行