随笔分类 -  bug大集合

记录日常编码遇到的bug
摘要:Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is org.apache.i 阅读全文
posted @ 2021-10-17 19:33 一切为了梦想 阅读(586) 评论(0) 推荐(0)
摘要:org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'com.southwind.mmall002.service.Impl.ProductCategorySe 阅读全文
posted @ 2021-10-17 11:55 一切为了梦想 阅读(233) 评论(0) 推荐(0)
摘要:Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.2021-10-16 18:59:03.083 ERROR 55024 [ 阅读全文
posted @ 2021-10-16 19:05 一切为了梦想 阅读(856) 评论(2) 推荐(0)
摘要:from pyecharts import options as opts 阅读全文
posted @ 2021-05-15 20:37 一切为了梦想 阅读(2405) 评论(0) 推荐(0)
摘要:import urllib str='伤害' print(urllib.parse.quote(str)) 报错AttributeError: module 'urllib' has no attribute 'parse',改为如下代码即可 import urllib.parse str='伤害' 阅读全文
posted @ 2021-05-14 15:13 一切为了梦想 阅读(1771) 评论(0) 推荐(1)
摘要:今天在用pandas库读取csv文件中出现了以下错误! data=pd.read_csv('spider_result.csv') 以前用这个方法读取csv文件很少出现报错,这短短一行代码为什么会报错呢?原来是因为这个csv文件中含有中文,且编码方式选择错误,在这里我用notepad++打开这个cs 阅读全文
posted @ 2021-04-30 11:41 一切为了梦想 阅读(1075) 评论(0) 推荐(0)
摘要:提示TypeError: 'WebElement' object is not iterable(webelment对象并不是可迭代的) 此时我们做以下改动便可解决问题 lis=driver.find_element_by_class_name('item') #查找的是第一个类名为item的元素将 阅读全文
posted @ 2021-04-28 11:24 一切为了梦想 阅读(252) 评论(0) 推荐(0)
摘要:笔者在爬取网页时遇到了selenium.common.exceptions.NoSuchElementException: Message: no such element的错误,提出以下解决方法 这里其实是由两个类(class)组成的div,而在find_element_by_class_name 阅读全文
posted @ 2021-04-28 11:14 一切为了梦想 阅读(13269) 评论(0) 推荐(0)