错误解决
Electrical_IT
这个作者很懒,什么都没留下…
展开
-
python报错 list indices must be integers or slices, not tuple
报错程序import numpy as npb = [[2,3,4] [2,3,4]]c = [[1,2,3] [1,2,3]]B = [np.sum(np.abs(a - c)) for a in b]print(B)# 报错行:b = [[2,3,4]# TypeError: list indices must be integers or slices, not tuple# 列表索引必须是整数或片,而不是元组列表索引必须是整数或片,而不是元组下面是修原创 2021-03-17 10:09:59 · 21679 阅读 · 0 评论 -
查看串口波特率、停止位数、奇偶校验位信息,更改COM
转载:[串口如何确定波特率-百度经验https://jingyan.baidu.com/article/4f34706e8ae829a287b56d9b.html](https://jingyan.baidu.com/article/4f34706e8ae829a287b56d9b.html)转载 2020-07-06 11:22:43 · 1837 阅读 · 0 评论 -
python 调用其他文件的类和函数以及避坑指南
转载:python 一个.py文件如何调用另一个.py文件中的类和函数_STR_Liang的博客-CSDN博客 在同一个文件夹下调用函数:A.py文件:def add(x,y): print('和为:%d'%(x+y))B.py文件:import AA.add(1,2)调用类:A.py文件:class A: def __init__(self,xx,yy): self.x=xx self.y=yy def add(self):转载 2021-03-17 00:36:29 · 3242 阅读 · 0 评论 -
解决ROS报错(min.x <= max.x && min.y <= max.y && min.z <= max.z)
ROS - rviz报错:rviz: OgreAxisAlignedBox.h:252:void Ogre::AxisAlignedBox::setExtents(const Ogre::Vector3&, const Ogre::Vector3&): 假设(min.x <= max.x && min.y <= max.y && min.z <= max.z) && “The minimum corner of the原创 2020-08-31 11:41:09 · 2907 阅读 · 3 评论 -
eclipse C/C++工程配置和debug配置
目录环境配置加载现有工程run模式选择(debug前必设置)调试配置 debug configuration环境配置python环境安装python环境的安装要安装齐全,尤其对于大型工程,一般需要很多工具包,比如numpy/matplotlib/ping/spicy/spacy等等,如果没有安装齐全,在eclipse中调试会直接弹窗报错。工程workspace路径工程workspace路径下最好只存放一个工程,避免冲突,这一点和Keil开发环境类似。在Keil中尤其需要注意这一点。加载现有工原创 2020-07-04 23:21:31 · 2086 阅读 · 1 评论 -
解决Eclipse C/C++ 报错:could not be resovled/Unresolved inclusion
参考链接:解决Eclipse C/C++中”Unresolved inclusion” 的错误提示 | 学步园 https://www.xuebuyuan.com/1257482.htmlUnresolved inclusion:< iostream>_百度知道 https://zhidao.baidu.com/question/202143917.html eclipse 运行C/C++时,报错:could not be resovled,如下图考虑头文件没有被编译器识别成功,原创 2020-07-03 16:35:17 · 8096 阅读 · 0 评论 -
error with command: gdb --version (Eclipse调试失败)
开发小白,刚刚打开ARC GNU IDE 2020.03 Eclipse尝试debug官方例程就报错。error with command: gdb --version首先查找了一些资料,如:Error while launching command: gdb --version-CSDN论坛Error with command: gdb --version - Stack Overflow在Windows下安装编译GDB调试工具_ZeroZone零域的博客-CSDN博客_windows g原创 2020-06-28 16:27:11 · 10616 阅读 · 4 评论