03 2023 档案

摘要:1.定义一个字符串常量 static const std::string version("0.0.1"); static const std::string name("Car-" + version); 2.定义size大小 static constexpr uint64_t shm_size{ 阅读全文
posted @ 2023-03-15 17:12 小柴i 阅读(16) 评论(0) 推荐(0) 编辑
摘要:问题 constexpr 和 const 之间有什么区别? 回答 对变量来说, const 表示的只是这个变量不可修改,但并未限定这个变量是编译期常量还是运行期常量;而 constexpr 只能是编译期常量。 const int kSize = 1; // 编译期常量 void func() { c 阅读全文
posted @ 2023-03-15 16:18 小柴i 阅读(141) 评论(0) 推荐(0) 编辑
摘要:charles Wireshark 阅读全文
posted @ 2023-03-14 14:44 小柴i 阅读(16) 评论(0) 推荐(0) 编辑
摘要:版本信息: pytest==7.2.2 先安装 pytest-html==3.2.0 卸载再安装pytest-html=3.1.1 conftest.py: import pytest from py.xml import html tester = 'chai' def pytest_html_r 阅读全文
posted @ 2023-03-14 14:16 小柴i 阅读(433) 评论(0) 推荐(0) 编辑
摘要:场景一:在jenkins上执行自动化任务,测试任务执行时使用jenkins用户(有sudo权限),测试脚本在linux执行(后台),执行到以下代码时报错: os.system(f"/usr/bin/konsole -e {cmd_orin2_10s}") 场景二:测试脚本在本地执行没有问题,本地执行 阅读全文
posted @ 2023-03-14 08:48 小柴i 阅读(50) 评论(0) 推荐(0) 编辑
摘要:1. 什么是buf off? 阅读全文
posted @ 2023-03-01 13:54 小柴i 阅读(45) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示