隔壁老王 隔壁老王
4年前
tornado入门笔记
官方文档https://www.tornadoweb.org/en/stable/简单使用/usr/bin/envpythoncoding:utf8Author:Wjyimporttornado.ioloop启动importtornado.web请求对象importtornado.tem
Stella981 Stella981
3年前
JS window对象 返回前一个浏览的页面 back()方法
JSwindow对象返回前一个浏览的页面back()方法,加载history列表中的前一个URL。语法:window.history.back();(https://www.oschina.net/action/GoToLink?urlhttps%3A%2F%2Fwww.cnblogs.com%2Fyongbin668%2Fp%2F55
Easter79 Easter79
3年前
Stream学习笔记
1. 创建Stream实例的五种方式@Testpublicvoidtest1(){//创建Stream对象的第一种方式List<StringlistLists.newArrayList("A","B","C");Stream<S
Wesley13 Wesley13
3年前
Java解析X509证书代码
通过PKCS12格式的证书库文件获取证书对象InputStreaminStreamnewFileInputStream("c:/certificate.p12");KeyStoreksKeyStore.getInstance("PKCS12");ks.l
Wesley13 Wesley13
3年前
Android 开发之 Notification
调用步骤:调用getSystemService(NOTIFICATION\_SERVICE)方法获取系统的NotificationManager服务通过构造器创建一个Notification对象为Notification设置各种属性通过NotificationManager发送Notification
Wesley13 Wesley13
3年前
Java 学习笔记 三
一、Druid的简单使用1try{2//1.创建Druid数据源对象3DruidDataSourcedataSourcenewDruidDataSource();45//2.设置数据库连接信息6
Stella981 Stella981
3年前
Mybatis useGeneratedKeys 填充自增主键值(使用Mysql)的原理分析
一、Mybatis配置<insertid"insert"parameterType"com.test.TestDO"keyProperty"id"useGeneratedKeys"true"useGeneratedKeys“true”时,mybatis会将自增ID值填充到TestDO对象中的id(
Stella981 Stella981
3年前
CDN a,b,c三种鉴权的PHP代码
A鉴权方式的代码//http://DomainName/Filename?auth\_keytimestampranduidmd5hash//sstring"URITimestampranduidPrivateKey"(URI是用户的请求对象相对地址,如/Filename)//HashValuemd5su
Stella981 Stella981
3年前
Python自动化部署环境
importparamikoimportsys创建SSHClient实例对象sshparamiko.SSHClient()调用方法,表示没有存储远程机器的公钥,允许访问ssh.set_missing_host_key_policy(paramiko.AutoAddPolic
Wesley13 Wesley13
3年前
2.4、Python文件对象及os、os.path和pickle模块(0530)
文件系统和文件1、文件系统是OS用于明确磁盘或分区上的文件的方法和数据结构即在磁盘上组织文件的方法;文件系统模块:os2、计算机文件(称文件、电脑档案、档案),是存储在某种长期储存设备或临时存储设备中的一段数据流,并且归属于计算机文件系统管理之下;3、概括来讲:文件是计算机中由OS管理的具有名字的存储区域;