运行报错了
开始运行时自动引入模块 urllib2
是这样的 from envs.py27.Lib import urllib2 然后报错 Traceback (most recent call last): File "F:/ym/baike_spider/spider_main.py", line 5, in <module> from baike_spider import url_manager, html_downloader, html_parser, html_outputer File "F:\ym\baike_spider\html_downloader.py", line 1, in <module> from envs.py27.Lib import urllib2 File "G:\anaconda3\envs\py27\Lib\urllib2.py", line 254 raise AttributeError, attr ^ SyntaxError: invalid syntax