sample_input.txt 파일

SW Expert Academy의 문제에서 sample input 양이 너무 많다... 그래서 디버깅 할 때 각각의 테케마다 텍스트 파일에서 복붙하는게 힘들다(80000 줄을 복붙할 순 없잖아요....) 그래서 걍 파이썬으로 추출하는 코드를 만들어 버렸다. f = open("sample_input.txt", 'r', encoding = 'utf-8') startline = int(input())-1 endline = int(input()) datas = f.readlines()[startline:endline] f.close() nf = open("test.txt", 'w') for data in datas: nf.write(data) nf.close() EX) 1 10 위와 같이 입력하면 sample_..
밤밭황제
'sample_input.txt 파일' 태그의 글 목록