-
Python raw_input 명령 안될때 name 'raw_input' is not definedAI Python/Python 2020. 10. 31. 22:28
Python raw_input 은 python 3.X 버전에서는 없어진 명령어라고 합니다.
raw_input 대신 input 명령만 사용하시면 됩니다.
파이썬 문서 영문
파이썬 문서 한국어
https://docs.python.org/ko/3/index.html
PDF 문서 다운로드 영문
https://docs.python.org/3/download.html
def aaa(): mm1=input(" 너는 누구냐? : ") mm2=input(" 나이는 ? : ") mm3=input(" oo : ") aaa()
raw_input을 사용한 경우 에러 메시지
def aaa(): mm1=raw_input(" 너는 누구냐? : ") mm2=raw_input(" 나이는 ? : ") mm3=raw_input(" oo : ") aaa()
https://docs.python.org/ko/3/whatsnew/3.0.html?highlight=raw_input
PEP 3111: raw_input() was renamed to input(). That is, the new input() function reads a line from sys.stdin and returns it with the trailing newline stripped. It raises EOFError if the input is terminated prematurely. To get the old behavior of input(), use eval(input()).
PEP 3111 : raw_input ()의 이름이 input ()으로 변경되었습니다. 즉, 새로운 input () 함수는 sys.stdin에서 행을 읽고 후행 줄 바꿈을 제거하여 반환합니다. 입력이 조기에 종료되면 EOFError가 발생합니다. input ()의 이전 동작을 얻으려면 eval (input ())을 사용하십시오.
++++++++++++++++++++++++++++++++++++
초보자를 위한 python 도우미
https://lcj8390.tistory.com/85
초보자용 필독도서 점프투파이썬
https://wikidocs.net/book/1
Python install 설치 방법
lcj8390.tistory.com/80
Python pip install 사용방법, 필수 라이브러리와 도구 설치
lcj8390.tistory.com/81Python Jupyter notebook 사용방법 주피터노트북 사용법 1
https://lcj8390.tistory.com/83
Python Jupyter notebook 사용방법 주피터노트북 사용법 2
https://lcj8390.tistory.com/84
파이썬 NameError: name is not defined 에러 해석
https://lcj8390.tistory.com/86
Python raw_input 명령 안될때 name 'raw_input' is not defined
https://lcj8390.tistory.com/87
+++++++++++++++++++++++++++++++++++++