以下代码从给定的字符串中删除制表符和换行符
import re print re.sub(r"\s+", " ", """I find Nhooo helpful""")
输出结果
这给出了输出
I find Nhooo helpful
友情链接: json在线解析 通晓查询 糯晒黄历 姓名打分