我知道有一些与我类似的问题,但我找不到解决我的问题的方法。我有一个字符串,它是:
"subject: Exercise Feedback Form
persona_id: bresse
Q1: Yes
Q1 comments: Yes everything was found A1
Q2: No
Q2 comments: No forgot to email me A2
Q3: Yes
Q3 comments: All was good A3
Q4: No
Q4 comments: It was terrible A4
Q5_comments: Get Alex to make it better
如您所见,中间有大量空白。我将如何使用 python 删除它?
炎炎设计
神不在的星期二
海绵宝宝撒
一只斗牛犬
相关分类