简介 STM32的串口带有DE功能引脚,可以用于硬件控制RS485收发器,以STM32L071RBT6相关的文档为基准作记录。 功能描述 具体介绍可以在官方参考手册的USART章节,USART functional description小节的RS485 Driver Enable部分查看。 整个配 ...
分类:
其他好文 时间:
2020-07-14 18:07:53
阅读次数:
94
//线程池创建,线程池提交任务使用Callable int corePoolSize = 3; int maximumPoolSize = Runtime.getRuntime().availableProcessors() * 2; BlockingQueue<Runnable> queue = ...
分类:
编程语言 时间:
2020-07-14 16:20:51
阅读次数:
63
(1)if 从句是一种虚拟的条件或假设,和现在事实相反的。主从句时态具体如下: 从句: 动词过去式(be 用 were)无论主语是不是单数,都用were 主句:would / could / should / might + 动词原形 所以句型应该是 : ... were... , ...would ...
分类:
其他好文 时间:
2020-07-14 13:45:40
阅读次数:
58
github网络错误处理 [root@node10 kodoe]# git pull origin:dev ssh: Could not resolve hostname origin: Name or service not known fatal: Could not read from rem ...
分类:
其他好文 时间:
2020-07-14 13:37:21
阅读次数:
72
给定一个范围在 1 ≤ a[i] ≤ n ( n = 数组大小 ) 的 整型数组,数组中的元素一些出现了两次,另一些只出现一次。 找到所有在 [1, n] 范围之间没有出现在数组中的数字。 您能在不使用额外空间且时间复杂度为O(n)的情况下完成这个任务吗? 你可以假定返回的数组不算在额外空间内。 示 ...
分类:
编程语言 时间:
2020-07-14 00:33:56
阅读次数:
60
Given an unsorted array of integers, find the length of longest continuous increasing subsequence (subarray). 找最长连续上升子序列 class Solution(object): def f ...
分类:
其他好文 时间:
2020-07-14 00:26:48
阅读次数:
59
字符串相关函数 *capitalize 字符串首字母大写 *title 每个单词的首字母大写 *upper 将所有字母变成大写 *lower 将所有字母变成小写 *swapcase 大小写互换 *len 计算字符串的长度 *count 统计字符串中某个元素的数量 *find 查找某个字符串第一次出现 ...
分类:
其他好文 时间:
2020-07-14 00:26:15
阅读次数:
67
从网上搜集到两种解决办法: 1、执行以下命令(我也是这样解决的) sudo apt-get install libjpeg-dev zlib1g-dev pip install Pillow 如果是python3,则将第二句改为: pip3 install Pillow 2、更新pip版本 pip ...
分类:
编程语言 时间:
2020-07-14 00:24:25
阅读次数:
303
1.FIND_IN_SET() 定义: 1. 假如字符串str在由N子链组成的字符串列表strlist中,则返回值的范围在1到N之间。 2. 一个字符串列表就是一个由一些被‘,’符号分开的自链组成的字符串。 语法:FIND_IN_SET(str,strlist) UPDATE c_u_org_cus ...
分类:
数据库 时间:
2020-07-13 21:35:19
阅读次数:
82
服务的访问控制列表 [root@localhost ~]# cat /etc/hosts.allow # # hosts.allow This file contains access rules which are used to # allow or deny connections to ne ...
分类:
系统相关 时间:
2020-07-13 18:06:16
阅读次数:
71