首先在官网上下载u8glib for arm https://github.com/olikraus/u8glib 下载之后解压 新建 u8g_arm.c 这是u8g的接口文件 需要实现的函数: u8g_Delay(uint16_t)为延时n毫秒函数 关于case U8G_COM_MSG_WRITE ...
分类:
其他好文 时间:
2019-10-29 23:46:27
阅读次数:
321
父类已经把异常信息操作完了,子类在构造时,将异常信息传给父类即可,通过super()语句。 super(String msg,Throwable cause); 然后通过getMessage()获得自定义错误信息。 Throws语句:受控异常,抛出某种异常,调用此函数必须使用try/catch/fi ...
分类:
其他好文 时间:
2019-10-29 21:42:42
阅读次数:
107
<div id="app"> <input type="text" v-limit.3="msg" v-focus> </div> <script src="./node_modules/vue/dist/vue.js"></script> <script> Vue.directive("focus... ...
分类:
其他好文 时间:
2019-10-28 21:21:50
阅读次数:
122
按此步骤基本没问题,中间有conflict,需要手动解决。 1、git stash 2、git pull 3、git stash pop 4、git add --xxx 5、git commit -m "msg" 6、git pull -r 或 git pull -rebase 7、git push ...
分类:
其他好文 时间:
2019-10-28 10:50:50
阅读次数:
287
用户端在使用sendmsg/recvmsg发送或者接收数据时,会使用msghdr来构造消息,其对应的内核结构为user_msghdr;其中msg_iov向量指向了多个数据区,msg_iovlen标识了数据区个数;在通过系统调用进入内核后,该结构中的信息会拷贝给内核的msghdr结构; 在套接字发送接 ...
分类:
其他好文 时间:
2019-10-27 22:56:50
阅读次数:
110
```go func Test_doSeond(t testing.T) { msg := make([]Msg, 0) for i := 0; i ...
分类:
其他好文 时间:
2019-10-26 19:22:48
阅读次数:
93
import smtplib import email.mime.multipart import email.mime.text def send_email(receiver,content): msg = email.mime.text.MIMEText(content, 'html', 'u... ...
分类:
编程语言 时间:
2019-10-23 20:03:23
阅读次数:
93
## 二次封装Response类 Response({ 'status': 0, 'msg': 'ok', 'results': [], 'token': '' # 有这样的额外的key-value数据结果 },status=http_status,headers=headers,exception... ...
分类:
其他好文 时间:
2019-10-20 14:41:04
阅读次数:
73
一、复习 1、easygui 信息提示对话框 2、easygui 是否对话框 二、easygui其它组件 1、选择对话框:choicebox(msg, title, choices) import easygui as g msg = "输入你喜欢的颜色" title = "游戏互动" choice... ...
分类:
编程语言 时间:
2019-10-19 20:39:10
阅读次数:
133
创建数据库: 1.本小白通过navicat创建数据库,创建数据库mydb,创建msg表用来储存信息,有id,user,content,time,其中id为主键自动递增,设置好字符集,排序规则。 网页数据传入数据库 ...
分类:
数据库 时间:
2019-10-18 13:56:14
阅读次数:
86