一.程序交互 1.数字类型 你需要考虑单双的配合(特殊情况,其他情况下随意) 1 name = input('Name:') 2 age = input('Age:') 3 job = input('Job:') 4 hometown = input('Hometown:') 5 6 info='' ...
分类:
编程语言 时间:
2019-01-06 20:02:38
阅读次数:
204
1、./ 是当前目录 2、../ 是父级目录 3、/ 是根目录 ...
分类:
其他好文 时间:
2019-01-06 18:25:39
阅读次数:
189
微信小程序注册完整实例,发送短信验证码,带60秒倒计时功能,无需服务器端。效果图:代码:index.wxml<!--index.wxml--><viewclass="container"><viewclass=‘row‘><inputplaceholder=‘请输入姓名‘bindinput=‘bindNameInput‘/></view>
分类:
微信 时间:
2019-01-06 18:14:41
阅读次数:
194
新的一年第一篇文章也是写拖动,这次代码比较简单, 主要是思路是根据坐标轴判断排序 CSS代码: HTML代码: JS代码: ...
分类:
其他好文 时间:
2019-01-05 13:22:04
阅读次数:
221
1、linux下实现: 执行如下两条命令即可 sudo apt-get install cmatrix cmatrix 2、JS实现,吧如下代码保存成HTML执行,即可 黑客帝国效果 ...
分类:
其他好文 时间:
2019-01-05 12:05:56
阅读次数:
217
在VC裡頭使用 Api必須include 跟加入 lib,加入之後就可以在VC裡頭任意使用api了 Dialog head file FindHid WriteFile ReadFile OutReport InReprot ...
分类:
编程语言 时间:
2019-01-04 23:09:51
阅读次数:
247
在紀錄 In/Out Report 收發之前先來看一下一個struct 這邊有特別註解 Control Endpoint, Class Specific Endpoint,理解翻譯就是Control Endpoint 即是所謂的Endpoint 0 在USB協定中,一定是透過Endpoint 0,而 ...
分类:
其他好文 时间:
2019-01-04 22:36:18
阅读次数:
351
在這理整理一下基本 Report Descriptor 對於入門基礎的了解。 在很多文件、Blog都有提到HID report 總共分為3種 : Input、Output、Feature reports。 在這些 In/Out 方向提的是Host的方向(PC),則 Feature是雙向傳輸的。 US ...
分类:
其他好文 时间:
2019-01-04 21:31:11
阅读次数:
173
Nodejs ORM框架Sequelize快速入门 ========================= 什么是ORM? 简单的讲就是对SQL查询语句的封装,让我们可以用OOP的方式操作数据库,优雅的生成安全、可维护的SQL代码。直观上,是一种Model和SQL的映射关系。 CREATE TABLE ...
分类:
Web程序 时间:
2019-01-04 21:22:47
阅读次数:
229
# 博客项目 ### 昨日内容完善 - 密码加密存储 ```python from werkzeug.security import generate_password_hash, check_password_hash # 用户模型 class User(UserMixin, db.Model):... ...
分类:
其他好文 时间:
2019-01-04 19:41:53
阅读次数:
195