2017-08-16 58 views

回答

2

使用splitlines(),传递true:

"amount\nexceeds".splitlines(True) 

为您提供:

["amount\n", "exceeds"]