我有一个CSV文件,需要删除并按Enter键(表示\ n)
以下是CSV文件示例:
Rorschach.,11/1/2020 02:40,"
https://upload.cc/i1/2020/01/11/XcGyfD.png
"
Rorschach.,11/1/2020 02:42,"
答定manaman先 抗爭幣(壽終正寢)最有用 /faces/agree.gif #yup#
"
manaman,11/1/2020 04:28,"
教協竟然聽從國師講, 反黃色經濟圈 熱狗 /faces/dead.gif xx(
"
I tried to use new_html_code = re.sub("\n", "", original_html_code)
to remove enter function(\n), but is is not work.
以下是我的预期结果:
Rorschach.,11/1/2020 02:40," https://upload.cc/i1/2020/01/11/XcGyfD.png "
Rorschach.,11/1/2020 02:42," 答定manaman先 抗爭幣(壽終正寢)最有用 /faces/agree.gif #yup# "
manaman,11/1/2020 04:28," 教協竟然聽從國師講, 反黃色經濟圈 熱狗 /faces/dead.gif xx( "
我想知道如何更正我的代码?谁能帮我?谢谢〜