![](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2F6fS87%2FbtrBEdDXcA2%2FuNX46tjAeWjARSLFdaFu80%2Fimg.png)
[readlines()] 파일의 모든 데이터를 읽어서 리스트 형태로 반환한다. from url import * with open(url()+'hello.txt','r') as f : print(f.readlines()) print(type(f.readlines())) ''' ['hello python\n', 'hello c/c++\n', 'hello java\n', 'hello javascript'] ''' 다음과 같이 개행을 포함해서 각 줄을 요소로 하는 리스트를 반환한다. [readline()] .한 행을 읽어서 문자열로 반환한다. from url import * with open(url()+'hello.txt','r') as f : # print(f.readlines()) # print(type(f..