摘要: 小楼今天在做一个Java项目的时候遇到一个大家经常遇到的问题:XXX cannot be resolved to a type 看到一百多个errors时的时候,小楼也是被吓得赶紧去找度娘。 归纳一下小楼在网上看到的这种报错的主要的几种原因: 1、jdk不匹配(或不存在) 2、jar包缺失或冲突 3 阅读全文
posted @ 2019-12-23 17:46 Kangbaz1 阅读(23579) 评论(0) 推荐(0) 编辑
摘要: 1.无法定位到元素/定位元素超时(selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element/selenium.common.exceptions.Time 阅读全文
posted @ 2023-04-10 10:51 Kangbaz1 阅读(194) 评论(0) 推荐(0) 编辑
摘要: 在读取csv文件时,报错:UnicodeDecodeError: 'utf-8' codec can't decode bytes in position 14-15: invalid continuation byte 尝试在代码首行添加如下编码格式语句后,运行仍报错。 # _*_ coding: 阅读全文
posted @ 2022-08-05 11:08 Kangbaz1 阅读(860) 评论(0) 推荐(0) 编辑
摘要: 两步操作解决: 一、找到对应数据库右击进入Edit Connection: 二、进入Connection settings >> Driver properties找到allowPublicKeyRetrieval将Value改为TRUE,将useSSL的Value改为FALSE ,确认后recon 阅读全文
posted @ 2021-09-15 20:33 Kangbaz1 阅读(751) 评论(0) 推荐(0) 编辑
摘要: 方法挺多的,我选择一种比较简单的方法,其它方法参考该博主博文:https://blog.csdn.net/cunchi4221/article/details/107471069 使用Files类将文件读取为字符串: 1 package com.example.test; 2 3 4 import 阅读全文
posted @ 2021-09-08 11:25 Kangbaz1 阅读(515) 评论(0) 推荐(0) 编辑
摘要: 便于记录和学习,分享该博主链接如下: https://www.cnblogs.com/darkknightzh/p/6117528.html 阅读全文
posted @ 2021-03-13 16:12 Kangbaz1 阅读(418) 评论(0) 推荐(0) 编辑
摘要: 问题 在调用matplotlib库画图时通常需要设置xy轴的标签值,然而经常会出现设置中文时显示乱码,如图所示: 解决方法 在设置标签前,添加如下代码 import matplotlib.pyplot as plt plt.rcParams['font.sans-serif'] = ['SimHei 阅读全文
posted @ 2021-03-13 16:06 Kangbaz1 阅读(214) 评论(0) 推荐(0) 编辑
摘要: 相信很多接触建模的同学都知道NetLogo这款软件,NetLogo是一个用来对自然和社会现象进行仿真的可编程建模环境,其编程语法非常简单,功能却非常强大。 下载官网地址为:http://ccl.northwestern.edu/netlogo/oldversions.shtml 问题: NetLog 阅读全文
posted @ 2021-01-17 15:26 Kangbaz1 阅读(1252) 评论(0) 推荐(0) 编辑
摘要: 博主之前在博文(https://www.cnblogs.com/kangbazi666/p/14153604.html)中已经介绍了多人VNC的配置方法,下面将简单介绍其使用方法及常见问题的解决方法。 VNC使用 开启VNC端口 开启vnc端口步骤如下: 步骤1:打开MobaXterm软件,登陆服务 阅读全文
posted @ 2020-12-31 17:36 Kangbaz1 阅读(6659) 评论(0) 推荐(0) 编辑
摘要: 在Eclipse中导入Java项目的时候,报错“Some projects cannot be imported because they already exist in the workspace”,无法成功导入。 原因分析: Eclipse中存在同名的项目。 解决方法: 第一步:找到待导入项目 阅读全文
posted @ 2020-12-29 19:33 Kangbaz1 阅读(1777) 评论(0) 推荐(0) 编辑
摘要: 分析原因:下载的xlrd库版本不兼容 解决方法: pip install xlrd==1.2.0 阅读全文
posted @ 2020-12-21 15:51 Kangbaz1 阅读(13149) 评论(0) 推荐(0) 编辑