import re //The second argument is //For windows system\\n, //For Unix\n //Supports multiple delimiters with regular expressions re.split(r"\\n|\n", "aaa\\nbbb")
Recommended Posts