摘要:根据网上搜索,修改Preferences、 pom.xml、 maven settings.xml中的 jdk版本后,发现External Libraries中jdk仍为旧版本。 表示仍旧有漏修改的地方。 File -> Project Structure Project Settings -> P
阅读全文
摘要:问题描述: 引入dependency后,maven没有自动下载依赖 解决方法:在工程的目录下,执行$ mvn compile 。
阅读全文
摘要:报错原因: student_list = [1, 2, 3, 4, 5] 使用" ".join(student_list)时,student_list中的元素都为整数。 解决方法: 将student_list中的元素都变为str类型 list(map(str, student_list)) 关于ma
阅读全文
摘要:电脑突然不能打开pycharm了,一打开就闪退,通过终端启动发现报错initial heap size set to a larger value than the maximum heap size idea。 在网上搜索后,大家说修改bin目录下的pycharm.vmoptions文件即可,于是
阅读全文
摘要:是因为在 config.ini 文件中包含了 % 这种特殊字符 解决方案 换一种方式进行读取配置文件原本代码:cf= configparser.ConfigParser() 替换成:cf = configparser.RawConfigParser() 参考:https://blog.csdn.ne
阅读全文
摘要:在转换的字符串中,存在null时,就会出现NameError: name ‘null’ is not defined这个错误。 解决办法:使用replace方法将null替换掉 注意:replace argument 2 must be str replace的两个参数都必须为字符串 str.rep
阅读全文