- 博客(20)
- 问答 (4)
- 收藏
- 关注
原创 numpy报错AttributeError: module ‘numpy‘ has no attribute ‘float‘.
【代码】numpy报错AttributeError: module ‘numpy‘ has no attribute ‘float‘.
2023-05-18 13:39:45
1298
原创 Apex库报错IndexError: tuple index out of range
【代码】Apex库报错IndexError: tuple index out of range。
2023-05-18 13:29:15
533
原创 报错ModuleNotFoundError: No module named ‘mmcv._ext‘
参考网址:https://mmcv.readthedocs.io/zh_CN/v1.3.18/get_started/installation.html。参考网址:https://pytorch.org/get-started/previous-versions/mmcv、cuda、torch版本不匹配。1、重新安装pytorch。2、重新安装mmcv。
2023-05-16 20:23:33
1703
原创 equired request parameter ‘params‘ for method parameter type String is not present
spring报错
2022-07-14 15:08:52
1438
原创 Tensor is unhashable if Tensor equality is enabled
Tensor is unhashable if Tensor equality is enabled. Instead, use tensor.experimental_ref() as the key.
2022-06-01 17:50:33
223
原创 springboot搭建时maven加载不成功
1、错误信息Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.2022-01-02 21:45:37.900 ERROR 35068 --- [ restartedMain] o.s.b.d.LoggingFailureAnalysisReporter : ***************************APPL
2022-01-02 22:27:48
1375
原创 Ubuntu16.04 ros安装步骤(包含“初始化rosdep”错误解决方法)
系统设置——软件和更新——选择最佳服务器添加ros软件源sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" >/etc/apt/sources.list.d/ros-latest.list'添加密钥sudo apt-key adv --keyserver 'hkp://keyserver.ubuntu.com:80' --recv-key C1CF6E31E6BADE88.
2021-07-19 12:02:28
931
原创 vue无法访问到‘../assets/img/xxx.jpg‘
将地址改为require('../assets/img/user.jpg')将原来的地址放在require中
2020-12-23 17:22:06
1935
1
原创 Error in render: “TypeError: Cannot read property ‘components‘ of undefined“
报错内容:报错原因:App.vue中有两个组件都引用了mixins解决方法方法一:在mixin下再生成其他的.js,让不同的组件引用不同的.js方法二:只保留一个组件用mixin,其他组件不要用mixin
2020-12-17 22:10:18
5693
原创 Unknown custom element: <el-carousel-item>
vue 报错 Unknown custom element: - did you register the component correctly?解决方法src/main.js 中添加
2020-12-16 21:50:18
979
原创 Cannot find module ‘webpack-cli/bin/config-yargs‘
解决方法卸载当前的 webpack-cli npm uninstall webpack-cli安装 webpack-cli 3.* 版本 npm install webpack-cli@3 -D
2020-12-16 18:46:48
157
原创 ‘webpack-dev-server‘ 不是内部或外部命令,也不是可运行的程序
解决方法命令:npm install webpack-dev-server --save-dev
2020-12-16 18:28:25
99
原创 抛出Error creating bean with name ‘AdmainController‘:
当报错:"Error creating bean with name ‘AdmainController‘:…"时一定是xxxmapper.xml中出错,但报AdmainController不一定是AdmainMapper中出错,所以要把每个xxxmapper.xml检查一遍。发现问题所在:由于返回值不是自定义的,所以不能用resultMap解决办法:改为resultType...
2020-12-15 15:15:15
285
原创 mybatis抛出Error creating bean with name ‘xxxController‘:
找了一天的bug,以下时mybatis报错内容:org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'xxxController': Unsatisfied dependency expressed through field 'xxxService';通过检查以下问题没有错误:检查xml的namespace是否和mapper文件的名称一一对应检查方法名称是
2020-11-29 18:09:59
953
原创 报错Field Mapper in xxx.xxxServiceImpl required a bean of type ‘dao.xxxMapper‘ that could not be found
报错Field Mapper in xxx.xxxServiceImpl required a bean of type ‘dao.xxxMapper’ that could not be found先说两个注释的区别:@Mapper不需要配置扫描地址,通过xml里面的namespace里面的接口地址,生成了Bean后注入到Service层中。@Repository需要在Spring中配置扫描地址,然后生成Dao层的Bean才能被注入到Service层中。方法一:@Repository改为@Ma.
2020-11-29 00:33:54
1349
2
原创 算法竞赛入门经典(第2版)例题(第3章)
例题 3-1 TeX中的引号(Tex Quotes)#include<stdio.h>int main(){ int c, q = 1; while((c = getchar()) != EOF) { if (c == '"') { printf("%s", q ? "“" : "”"); q = !q; } else printf("%c", c); } return 0;} 例题 3-2 WERTYU#include<stdi
2020-11-27 23:27:44
186
原创 算法竞赛入门经典(第2版)程序(第3章)
程序3-1 逆序输出#include<stdio.h>#define maxn 105int a[maxn];int main(){ int x, n = 0; while(scanf("%d", &x) == 1) //ctrl+z结束 a[n++] = x; for (int i = n-1; i >= 1; i--) printf("%d ", a[i]); printf("%d\n", a[0]); return 0;}程序3-2 开
2020-11-23 21:59:56
179
原创 算法竞赛入门经典(第2版)习题(第2章)
习题2-1 水仙花数(daffodil)#include<stdio.h>int main(){ for(int i = 100; i <= 999; i++) { int a = i/100; int b = i/10%10; int c = i%10; if (a*a*a + b*b*b + c*c*c == i) printf("%d\n", i); } return 0;}习题2-2 韩信点兵(hanxin)#include<std
2020-11-17 01:18:19
149
原创 算法竞赛入门经典(第2版)习题(第1章)
习题1-2 温度(temperature)#include<stdio.h>int main(){ double f, c; scanf("%lf", &f); c = 5.0*(f-32)/9.0; printf("%.3f", c); return 0;}习题1-4 正弦和余弦(sin和cos)#include<stdio.h>#include<math.h>int main(){ const double pi = acos(
2020-11-17 00:41:54
221
空空如也
java中new对象写在构造函数里和构造函数外面,所用时间和所占内存的区别
2021-02-06
为什么网页是白色的,什么也不显示
2020-11-28
为什么Logger没有error方法?
2020-07-29
TA创建的收藏夹 TA关注的收藏夹
TA关注的人