'python2'에 해당되는 글 1건

  1. 2019.05.31 python 3 "NameError: name 'file' is not defined "

- 오류 내용 : NameError: name 'file' is not defined
- 오류 원인 및 해결 방법 : 
   python 2.x 버전에서 사용하던 file() 은 삭제 되었습니다.
   Python 3 버전에서는 file() 대신 open(filename, mode)을 사용하세요.
- 참고 : https://docs.python.org/release/3.0/whatsnew/3.0.html#builtins
       https://docs.python.org/release/3.0/library/functions.html#open

Posted by 천연사이다
이전버튼 1 이전버튼

블로그 이미지
공부 기록
천연사이다

공지사항

Yesterday
Today
Total

달력

 « |  » 2024.5
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31

최근에 올라온 글

최근에 달린 댓글

최근에 받은 트랙백

글 보관함