2017-08-16 59 views

回答

2

使用splitlines(),傳遞true:

"amount\nexceeds".splitlines(True) 

爲您提供:

["amount\n", "exceeds"]