프로그래밍/파이썬
python으로 code에서 주석 제거하기
레곤플라이
2014. 3. 7. 12:23
import re
string = open('nf21cea1mg.html', 'r').read()
string = re.sub(re.compile("/\*.*?\*/",re.DOTALL ) ,"" ,string)
open('decode.txt', 'w').write(string)