저는 Python에서 새롭습니다. 나는 오류 .I the Python 2 documentation에서python 3 ImportError : 'urllib2'라는 모듈이 없습니다
코드이 링크
http://pythonprogramming.net/scraping-parsing-rss-feed/
저는 Python에서 새롭습니다. 나는 오류 .I the Python 2 documentation에서python 3 ImportError : 'urllib2'라는 모듈이 없습니다
코드이 링크
http://pythonprogramming.net/scraping-parsing-rss-feed/
에서 사용할 수 있습니다 작동하지 년대 code.But를 작성하는 튜토리얼을 따라 이해 할 수 없습니다
The
urllib2
module has been split across several modules in Python 3 namedurllib.request
andurllib.error
.
페이지는 파이썬 2를 사용하고 있습니다. 파이썬 3을 사용하려면, 일을 바꾸기 위해 상황을 변경해야 할 것입니다.
** **이 질문을 downvote하지 않았지만, 미래의 downvotes를 피하기 위해 [어떻게 좋은 질문을합니까?] (http://stackoverflow.com/help/how-to-ask)를 읽어보십시오.). 특히 자신의 코드를 질문에 게시하고 외부 사이트의 코드에 연결하지 마십시오. –