Home Forums Job & Work Life Python으로 파일 내용 변환하기 This topic has [11] replies, 0 voices, and was last updated 7 years ago by Fw. Now Editing “Python으로 파일 내용 변환하기” Name * Password * Email Topic Title (Maximum Length 80) 필요할때만 python 사용하려고하니 전혀 늘지 않고 질문드리게 됩니다. abcd.js란 파일이있고 파일 내용중에는 예를들어 다음과 같은 if 문이 있다고할때요 . . . // this will work only this page if(common.page=='header.html') { $.getScript( "ajax/test.js", function( data ) { console.log( data ); // Data returned }); } . . . 이 부분을 다음과 같이 변경하려합니다. . . . // this will work only this page //if(common.page=='header.html') { $.getScript( "ajax/test.js", function( data ) { console.log( data ); }); //} . . . 파일을 읽으면서 if 문이 매칭되면 if 문의 시작과 끝부분만 주석처리하려고 합니다. "if(common.page=='header.html') {" 이부분은 매칭되면 주석처리가 가능한데 if 문의 끝인 "}" 이부분은 어떻게 처리해야할지 모르겠습니다. 첫번째 if 문이 매칭되면 주석처리하고 그후 네번째줄도 주석처리해야하는데 잘 몰라서 질문도 제대로 하는건지 모르겠습니다. I agree to the terms of service Update List