Approach: The easiest way to split a given string by newline is to use the splitlines() method, i.e., simply use – 'given_string'.splitlines() .
確定! 回上一頁