正しくフォーマットされていないファイルがたくさんあります。ファイルから空白(新しい行ではない)と "/ n"を削除する方法
データは、私は、事前に "/ n" は
結果
select * from table1,table2
select cnt(1) from table3
おかげで不要な空白を削除し、どうすればよい。この
select * from table1 \n , table2
select cnt(1) from table3
のようなものである
「\ n」または「/ n」ですか? –
それは\ nで、/ nではない – nnnnmmm
可能な複製http://stackoverflow.com/questions/1546226/a-simple-way-to-remove-multiple-spaces-in-a-string-in-pythonとhttp: //stackoverflow.com/questions/8270092/python-remove-all-whitespace-in-a-string –