2022年11月28日
摘要:
只修改寄存器的某几位,其它位不变。 1. 把变量的某位清零 //定义一个变量 a = 1001 1111 b (二进制数) unsigned char a = 0x9f; //对 bit2 清零 a &= ~(1<<2); //括号中的 1 左移两位, (1<<2)得二进制数: 0000 0100
阅读全文
posted @ 2022-11-28 15:58
flash610
阅读(224)
推荐(0)
2022年11月18日
摘要:
第一步: 先删除pip,命令: python -m pip uninstall pip 第二步: python -m ensurepip 第三步: python -m pip install --upgrade pip -i https://pypi.douban.com/simple 一定要加上镜
阅读全文
posted @ 2022-11-18 15:59
flash610
阅读(110)
推荐(0)
摘要:
https://pypi.tuna.tsinghua.edu.cn/simplehttps://pypi.douban.com/simple
阅读全文
posted @ 2022-11-18 15:57
flash610
阅读(23)
推荐(0)
摘要:
Uk=Uk + KP*【E(k) - E(k-1)】+ KI*E(k) + KD*【E(k) - 2E(k-1) + E(k-2)】 Uk:输出值 ; E(k):当前误差值; E(k-1):上次误差值; KP:比例系数; KI:微分系数; KD:积分系数; E(k) = Uk - Uk-1; 例如:
阅读全文
posted @ 2022-11-18 12:17
flash610
阅读(1334)
推荐(0)
2022年8月26日
摘要:
值类型包含: 简单数据类型:int long short double string char decimal float bool ushort ulong uint 枚举类型:enum 结构体类型:struct 引用类型: 类类型:string,Console类和自定义类 数组类型:一位数组,多
阅读全文
posted @ 2022-08-26 16:02
flash610
阅读(64)
推荐(0)
摘要:
一个方法的自我调用就是递归。以下是以递归函数求阶乘。 using System; namespace CalculatorApplication { class NumberManipulator { public int factorial(int num) { /* 局部变量定义 */ int
阅读全文
posted @ 2022-08-26 11:16
flash610
阅读(97)
推荐(0)
摘要:
public 所有对象都可以访问 private 该对象本身在 对象内部可以访问 protected 只有该类对象本身和其子对象可以访问 internal 同一程序集的对象可以访问 protected internal 访问限于当前程序集或派生自包含类的类型 范围比较: private < inte
阅读全文
posted @ 2022-08-26 11:06
flash610
阅读(26)
推荐(0)
2022年8月18日
摘要:
kepserverEX5.11连接mysql,测试连接数据库正常, 但是建立设备后提示错误: Date Time Level Source Event2022-08-18 18:24:12 Error ODBC Client Failed to automatically generate tags
阅读全文
posted @ 2022-08-18 18:45
flash610
阅读(814)
推荐(0)
2022年5月27日
摘要:
无论执行什么sql语句都报错: [Err] 1055 - Expression #1 of ORDER BY clause is not in GROUP BY clause and contains nonaggregated column 'information_schema.PROFILIN
阅读全文
posted @ 2022-05-27 16:53
flash610
阅读(306)
推荐(0)
摘要:
在my.ini配置文件中加了一条default-character-set=utf8服务无法启动 最后发现是文本保存的默认字符集不对,记事本默认的字体为: 用notepade++打开此文件,保存为utf8;重启服务成功;
阅读全文
posted @ 2022-05-27 16:41
flash610
阅读(294)
推荐(0)