1.TypeError: object of type ‘Response’ has no len()
requests对象,无法用BeautifulSoup解析,要用r.content变成二进制形式
2.conda安装报错:solving environment:failed.更新conda base:conda update -n base conda
3.TypeError: expected string or bytes-like object.用beautifulsoup库提取网页注释,注释的格式不对【可用type查看】,用str函数转成字符串。
4.IndexError: list index out of range【可能是得到了空列表,可以打印一下列表看看】
5.[Errno 22] Invalid argument。注意python中的路径用/,跟转义符区分开来
6.UnsupportedOperation: write/read[应该是读写模式错误了,搞清楚什么时候读什么时候写】
自学过程中遇到的bug记录【不断更新】
最新推荐文章于 2024-08-14 16:04:15 发布