一、isinstance(obj,cls)和issubclass(sub,super) isinstance(obj,cls)检查是否obj是否是类 cls 的对象 issubclass(sub, super)检查sub类是否是 super 类的派生类 二、反射 1、什么是反射 反射的概念是由Smi ...
分类:
其他好文 时间:
2019-01-24 11:00:11
阅读次数:
126
vmstat:Reportvirtualmemorystatisticsvmstat[options][delay[count]]procs:[进程process]r:等待运行的进程的个数;CPU上等待运行的任务的队列长度;b:处于不可中断睡眠态的进程的个数;被阻塞的任务队列的长度;memory:swpd:交换内存使用总量;free:空闲的物理内存总量;buffer:用于buffer的内存总量;c
分类:
其他好文 时间:
2019-01-23 19:36:06
阅读次数:
180
SELECT ( @@key_buffer_size + @@query_cache_size + @@innodb_buffer_pool_size + @@innodb_additional_mem_pool_size + @@innodb_log_buffer_size + @@max_con... ...
分类:
数据库 时间:
2019-01-23 15:33:55
阅读次数:
190
安装环境::[注意:本教程newauth要用不加密的版本] windows 2003 enterprise server 100用户license Microsoft sql server 2000 +sp3 100用户license LineageII Server 简体中文版(177.980M) ...
项目效果图: 新建一个项目,结构图如下所示: activity_main.xml: MainActivity: java package com.demo.duihuakuang; import android.app.ProgressDialog; import android.content.C ...
分类:
移动开发 时间:
2019-01-23 01:30:45
阅读次数:
222
关于HTTP协议的理解 1:是什么 http(hyper text transfer protocol)超文本传输协议 ,基于TCP/IP通信协议来传输数据,属于应用层的面向对象的协议。 2:用在哪: 用于从万维网服务器传输超文本到本地浏览器的传输协议,工作于客户端到服务端架构上,浏览器作为HTTP ...
分类:
Web程序 时间:
2019-01-21 21:04:40
阅读次数:
175
NIO主要有三大核心部分:Channel(通道),Buffer(缓冲区), Selector。传统IO基于字节流和字符流进行操作,而NIO基于Channel和Buffer(缓冲区)进行操作,数据总是从通道读取到缓冲区中,或者从缓冲区写入到通道中。Selector(选择区)用于监听多个通道的事件(比如 ...
分类:
其他好文 时间:
2019-01-21 19:33:03
阅读次数:
140
sip里的rtcp操作https://wenku.baidu.com/view/854dd3e55ef7ba0d4a733bed.htmlrtpstreamdepay Depayloads RTP/RTCP packets for streaming protocols according to R ...
分类:
其他好文 时间:
2019-01-21 19:22:11
阅读次数:
191
Java代码 HttpServletRequest获取请求路径 1、 //Returns the part of this request's URL from the protocol name up to the query string in the first line of the HTT ...
分类:
Web程序 时间:
2019-01-21 15:57:54
阅读次数:
179
TCP和RTU协议非常类似,只要把RTU协议的两个字节的校验码去掉,然后在RTU协议的开始加上5个0和一个6并通过TCP/IP网络协议发送出去即可 MBAP Header长度共7个字节,分别为Transaction identifier(事务标识符),Protocol identifier(协议标识 ...
分类:
数据库 时间:
2019-01-21 15:53:49
阅读次数:
247