将遇到得编码错误及解决方法记录在此,贡以后参考。
(unicoe error)'unicodeescape' codec cant decode bytes in position 2-3:truncated\UXXXXXXXX escape # 路径前加原生字符
unindent dont not match any outer indentatino level # 缩进错误
常见状态码及含义
OSError: [Errno 22] Invalid argument: # 在爬虫时遇到,打开文件储存时遇到,保存路径前加r
# 常见状态码及含义
301 Moved Permanently:重定向到新的URL,永久性
302 Found:重定向到临时的URL,非永久性
304 Not Modified:请求的资源未更新
400 Bad Request:非法请求
401 Unauthorized:请求未经授权
403 Forbidden:禁止访问
404 Not found:没有找到对应的页面
500 Internal Server Error:服务器内部出现错误
501 Not Implemented:服务器不支持实现请求所需要的功能