上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 29 下一页
摘要: 矩阵matrix 1. 矩阵matrix 1.1. 定义由 m × n 个数aij排成的m行n列的数表称为m行n列的矩阵,简称m × n矩阵。记作: 这m×n 个数称为矩阵A的元素,简称为元,数aij位于矩阵A的第i行第j列,称为矩阵A的(i,j)元,以数 aij为(i,j)元的矩阵可记为(aij) 阅读全文
posted @ 2019-07-29 20:53 木林森__𣛧 阅读(2085) 评论(0) 推荐(0)
摘要: jquery 1. jquery 它是一个js库,类似于package,经常被引用。 中文文档:http://jquery.cuishifeng.cn/ 1.1. 引用方法 常在网页源码文件引用: <script src="{{url_for('static',filename='js/jquery 阅读全文
posted @ 2019-07-29 20:47 木林森__𣛧 阅读(190) 评论(0) 推荐(0)
摘要: html 标签 frame 对于html标签,一般都是在<html>标签对里包着<head>标签对和<body>标签对,body元素定义文档的主体,包含文档的所有内容(比如文本、超链接、图像、表格和列表等等)。而想要在页面中显示出来的内容全部写在<body>标签对里。 例如: <!DOCTYPE h 阅读全文
posted @ 2019-07-29 20:45 木林森__𣛧 阅读(315) 评论(0) 推荐(0)
摘要: 贝叶斯定理 贝叶斯定理是关于随机事件A和B的条件概率(或边缘概率)的一则定理。 P(A)是 A 的先验概率,之所以称为“先验”是因为它不考虑任何 B 方面的因素。 P(A|B)是已知 B 发生后 A 的条件概率,也由于得自 B 的取值而被称作 A 的后验概率。 P(B|A)是已知 A 发生后 B 的 阅读全文
posted @ 2019-07-29 20:40 木林森__𣛧 阅读(908) 评论(0) 推荐(0)
摘要: twisted reactor calllater实现 1. calllater实现代码 测试源码: from twisted.internet import reactor from twisted.internet import defer def func_1(): print('callla 阅读全文
posted @ 2019-07-25 21:23 木林森__𣛧 阅读(751) 评论(0) 推荐(0)
摘要: twisted reactor 实现源码解析 1. reactor源码解析 1.1. 案例分析代码: from twisted.internet import protocol from twisted.internet.protocol import Factory from twisted.pr 阅读全文
posted @ 2019-07-25 21:22 木林森__𣛧 阅读(502) 评论(0) 推荐(0)
摘要: socket 多连接 本文档为文档https://www.cnblogs.com/wodeboke-y/p/11241472.html 后续内容。 上一文档中的案例2给出了一个阻塞型socket server 下面为非阻塞型,关键点如下: accept阻塞,使用thread解决 socket阻塞,使 阅读全文
posted @ 2019-07-24 23:23 木林森__𣛧 阅读(324) 评论(0) 推荐(0)
摘要: select模块 1. select模块 源:select.py This module provides access to the select() and poll() functions available in most operating systems, devpoll() avail 阅读全文
posted @ 2019-07-24 23:01 木林森__𣛧 阅读(328) 评论(0) 推荐(0)
摘要: socket 1. socket Source code: Lib/socket.py This module provides access to the BSD socket interface. It is available on all modern Unix systems, Windo 阅读全文
posted @ 2019-07-24 23:01 木林森__𣛧 阅读(259) 评论(0) 推荐(0)
摘要: @implementer,抽象类,接口 1. implementer 在看twisted源码时,经常出现@implementer(IReactorFDSet) 它来自zope.interface,提供了接口的实现。 理论上,它要提供一个约束要求子类必需实现装饰器中类的方法。 然而,但是,跑了一下,发 阅读全文
posted @ 2019-07-19 22:22 木林森__𣛧 阅读(502) 评论(0) 推荐(0)
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 29 下一页