自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(8)
  • 资源 (3)
  • 收藏
  • 关注

原创 python中多个and多个or的执行情况

python中多个and多个or的执行情况多个and,当条件不满足时,跳过后面的多个or,条件满足时,跳过后面def testif(num): print "num",num return numprint "test and"if testif(1) and testif(0) and testif(2): print "ok and"print "test or"if testif(1) or testif(0) or testif(2): prin

2020-08-27 14:39:28 5854

原创 ROS安装用国内的镜像:下载速度比国外的快很多!

以下可以做成一个脚本一键下载安装ROS注意我的是ubuntu18安装的melodic。Ubuntu1604是要安装kinetic版本。sudo sh -c '. /etc/lsb-release && echo "deb http://mirrors.tuna.tsinghua.edu.cn/ros/ubuntu/ `lsb_release -cs` main" > /...

2020-02-20 14:34:35 3380 1

原创 The program 'roscore' is currently not installed. You can install it by typing: sudo apt install py

安装了ros但是运行roscore出现错误:The program 'roscore' is currently not installed. You can install it by typing: sudo apt install pyt解决方法:source /opt/ros/kinetic/setup.bash/opt/ros/kinetic/./setup.bashsudo...

2019-08-08 17:14:13 2767 2

原创 c/c++中位与运算&代替取模运算%

c/c++中位与运算&代替取模运算%取模运算所需的时间大约是位与运算的十倍。当模的大小是2的N次方时,可用位与运算代替取模运算:unsigned int modNum = 1024; // 2的N次方unsigned int x = 4321;unsigned int a = x % modNum;unsigned int b = x & (modNum - 1);...

2019-02-12 17:31:31 1577

原创 tcpdump显示IP

TCPDUMP显示IPTCPDUMP的时候没有显示IP,现象如下:10:58:05.494626 IP promote.cache-dns.local.50962 > promote.cache-dns.local.51101: UDP, length 20610:58:06.494650 IP promote.cache-dns.local.50962 > promote.ca...

2019-01-17 11:02:33 6879

原创 c语言函数参数++自增--自减情况分析(二)c++中的list之erase操作

c++中的list之erase操作正确的代码:void listRelease(aList_t *naList){ aList_t ::iterator iter; for (iter = naList->begin(); iter != naList->end(); ) { LOGD_INFO << "re...

2019-01-10 10:30:52 504

原创 c语言函数参数++自增--自减情况分析(一)

c语言函数参数自增自减情况分析(一)上代码:void hahaha( int i, int * k){ printf("%d\n", i); printf("%d\n", i); printf("%d\n", *k);}int main(){ int hh = 1; hahaha(hh++, &hh)

2019-01-09 18:19:30 1668

原创 linux/centos中运行程序出现'GLIBCXX_3.4.21' not found

centos中运行程序出现'GLIBCXX_3.4.21' not found首先检查gcc版本升级gcc到5.4首先检查gcc版本gcc -v我的版本是4.8*,需要升级升级gcc到5.4安装所需工具:yum groupinstall "Development Tools"yum install glibc-static libstdc++-static下载gcc:http:...

2018-10-18 15:44:34 11517 6

wifi mesh 矿山通信解决方案

矿山无线通信解决方案。基于无线WiFi mesh的方案。自动组网。

2018-12-20

欧洲电信业测试标准防水防震等

欧洲电信业测试标准防水防震等测试和评级标准。含有具体的测试方法。

2018-11-21

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除