摘要: 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 一切为了梦想 阅读(455) 评论(0) 推荐(0) 编辑
摘要: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'com.southwind.mmall002.service.Impl.ProductCategorySe 阅读全文
posted @ 2021-10-17 11:55 一切为了梦想 阅读(194) 评论(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 一切为了梦想 阅读(809) 评论(2) 推荐(0) 编辑
摘要: from pyecharts import options as opts 阅读全文
posted @ 2021-05-15 20:37 一切为了梦想 阅读(2340) 评论(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 一切为了梦想 阅读(1723) 评论(0) 推荐(1) 编辑
摘要: 今天在用pandas库读取csv文件中出现了以下错误! data=pd.read_csv('spider_result.csv') 以前用这个方法读取csv文件很少出现报错,这短短一行代码为什么会报错呢?原来是因为这个csv文件中含有中文,且编码方式选择错误,在这里我用notepad++打开这个cs 阅读全文
posted @ 2021-04-30 11:41 一切为了梦想 阅读(790) 评论(0) 推荐(0) 编辑
摘要: 提示TypeError: 'WebElement' object is not iterable(webelment对象并不是可迭代的) 此时我们做以下改动便可解决问题 lis=driver.find_element_by_class_name('item') #查找的是第一个类名为item的元素将 阅读全文
posted @ 2021-04-28 11:24 一切为了梦想 阅读(139) 评论(0) 推荐(0) 编辑
摘要: 笔者在爬取网页时遇到了selenium.common.exceptions.NoSuchElementException: Message: no such element的错误,提出以下解决方法 这里其实是由两个类(class)组成的div,而在find_element_by_class_name 阅读全文
posted @ 2021-04-28 11:14 一切为了梦想 阅读(13107) 评论(0) 推荐(0) 编辑
摘要: 在我们爬取网站时,url的关键字中可能含有中文,此时我们需要将中文转换成url编码。 举个例子: import urllib.parse name = urllib.parse.quote('中文') 阅读全文
posted @ 2021-04-27 22:01 一切为了梦想 阅读(2436) 评论(0) 推荐(0) 编辑
摘要: 1、json# 问题:转字典的字符串中{}里必须是",不能是'。否则会报错import jsona = {'name': 'xl', 'age': 12, 'car': {'type': '汽车', 'price': 10}, 'person': {'job': 'programmer', 'age 阅读全文
posted @ 2021-04-25 10:59 一切为了梦想 阅读(5210) 评论(0) 推荐(0) 编辑