编程笔记
-
C++ 11 数字转字符串新功能
// 头文件 <string>string to_string (int val);string to_string (long val);string to_string (long long val);string to_string (unsigned val);string to_string (unsigned long val);string to_string (…
-
C/C++中利用汇编incbin来包含二进制文件
https://gist.github.com/mmozeiko/ed9655cf50341553d282 #include <stdio.h> #define STR2(x) #x #define STR(x) STR2(x) // this aligns start address to 16 and terminates byte array with explict 0 …
-
FastApi学习
vscode配置 插件 code runner在 setting.json中关于python的修改为,因为我使用了虚拟环境,得让vscode找到python的路径 "code-runner.executorMap": { "python": "$pythonPath -u $fullFileName" } 使其在Run In T…
-
vTESTstudio只会一种编辑方式就“OUT”了
前言 之前我们有文章介绍过CANoe中自带的自动化测试功能-Test Module使用的方法,相信各位工程师们已经熟练应用了。但是对Test Units,可能有些工程师只是在CANoe的界面中见过,没有实际使用过。Test Units是需…
-
python办公自动化(win32com):word中查找关键字所在段落,并设置段落内容的样式
from win32com import client # *** wps用kwps.Application;Microsoft word用Word.Application *** doc_app = client.Dispatch("kwps.Application") doc_app.Visible = False doc = doc_app.Documents.Open(r'C:/Us…
-
JAVA基础--面向对象--2022年8月23日
第一节 面向对象概述、注意事项 1、类和对象是什么? 类:共同特征的描述(设计图) 对象:是真实存在的具体案例 2、如何设计类 public class 类名{ 1、成员变量(代表属性的,…
-
java进制标识
java进制标识 二进制 0b 八进制 0 十六进制 0x int i = 010;//八进制0 8 int i1 = 0x10;//十六进制 16
-
vTESTstudio只会一种编辑方式就“OUT”了
前言 之前我们有文章介绍过CANoe中自带的自动化测试功能-Test Module使用的方法,相信各位工程师们已经熟练应用了。但是对Test Units,可能有些工程师只是在CANoe的界面中见过,没有实际使用过。Test Units是需…
-
python菜鸟学习: 11. 装饰器的基础用法
# -*- coding: utf-8 -*-# decorator# 定义:本质是函数,就是为其他函数添加附件功能# 原则:# 1.不能修改被装饰的函数的源代码# 2.不能修改被装饰的函数的调用方式# 实现装饰器# 1.函数既变量# 2.高阶函数# 3.嵌…
-
python菜鸟学习: 12. 装饰器的中级用法
# -*- coding: utf-8 -*-username = "liyuzhoupan"password = "123"def author(wrappreType): print("wrappreType:", wrappreType) def outterwrapper(func): def wrapper(*args, **kwargs): if wrappreType == "lo…