你可以试试这个。
s = "good \nand bad and\n\t not great and awesome" s = s.replace('\n','').replace('\t','') s_list = s.split('and')