strip() 只能够去除字符串首尾的换行符,不能够去除中间的换行符,还需要使用 .replace() 来替换 \r 和 \n 换行符。 1)去除换行符 .replace('\n', '').
確定! 回上一頁