赞
踩
学爬虫,遇到报错:Spellchecker inspection helps locate typos and misspelling in your code,comments and literals, and fix them in one click.
大概是说,拼写检查发现了代码中的拼写错误。
百度了一下,原来是pycharm自带拼写检查的功能,可以选择关闭。打开设置,找到Editor\Cor Scheme\General,选择Typo,右侧Effects的勾点掉。如图。
除了这个,还有一些奇奇怪怪的问题:
到这里会发现所有问题都和PEP 8有关, 原来这个是python编码规范,这就是 没仔细学python直接开始爬虫学习的缺点吧。。
PEP 8 官方文档:
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。