-4
readme = open (r'c:\users\user\desktop\br.txt','r',encoding = 'utf-8')
print (readme.read)
는
내가 파일을 열려고 시도되었지만,이 스크립트가 작동하지 않습니다, 그것은파이썬 3.4.4에서이 파일을 읽는 방법은 무엇입니까?
내장 방법 0x00000000036A83A8
에서 _io.TextIOWrapper 객체의 읽기
실제로 * 읽기 * 메서드를 호출해야합니다. 'readme.read'를'readme.read()'로 변경하십시오. 괄호에 유의하십시오. – idjaw
가능한 [Python으로 한 줄씩 파일을 읽는 방법] (http://stackoverflow.com/questions/3277503/how-to-read-a-file-line-by-line-into- a-list-with-python) – gabra