python怎样输出多个空格_Python spilt整理字符串的多个连续空格(包括空格、换行(\n)、制表符(\t)等)...
#去除字符串的换行-splitstr="Line1-abcdef\nLine2-abc\nLine4-abcd"new_str=str.split()print(str)print(new_str)','.join(new_str)-->>Line1-abcdefLine2-abcLine4-abcd['Line1-abcdef','Line2-abc','Line4-abcd']'Line1-a