最佳答案
我在一个 Python 字符串中有一些包含无关空行的代码。我想删除字符串中的所有空行。最简单的方法是什么?
注意: 我不是在寻找一个通用的代码重新格式化程序,只是一个快速的一行或两行。
谢谢!