텍스트 엔터기호 없애는 방법

텍스트 문서중 엔터기호를 없애는 방법을 알아보겠습니다.

 

아래 사이트에서 엔터 부호를 없앨 수 잇는데요.

 

https://removelinebreaks.net/

 

Remove Line Breaks

Remove Line Breaks is a online text tool that automatically remove all abnormally inserted line breaks.

removelinebreaks.net

텍스트를 직접 복사해서 넣거나, Upload file을 통해 파일을 업로드 할수도 있습니다.

etc-image-0

엔터가 쳐진 글을 넣고 아래와 같이 하면 되는데요.

 

바로 빈칸이 없어진 것을 확인할 수 있습니다.

etc-image-1

파이썬에서는 strip코드를 통해서도 제거할 수 있는데요.

str1 = "\n Starbucks has the best coffee \n"
newstr = str1.strip()
print(newstr)

이런 여러 방법으로 줄바꿈을 제거 할 수 있습니다.

 

그럼 잘 사용하시기 바랍니다.