会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
200ML
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
8
9
10
11
下一页
2017年1月20日
DOM
摘要: 操作 值操作 innerHTML innerText value -->表单标签中的值 样式 obj.className obj.classList obj.classList.add('hid')添加值 obj.classList.remove('hid')删除值
阅读全文
posted @ 2017-01-20 17:21 200ML
阅读(104)
评论(0)
推荐(0)
2017年1月19日
javascript基本
摘要: 数字: 创建 a = 123; 转换 parseInt 解析成数字 parseFloat 解析成浮点 isNaN() 数字返回FALSE 字符串返回TRUE Infinity 无穷大 -Infinity 负无穷大 inFinity() 无穷false 有限true 判断类型 typeof 功能的计算模块Math Number.toExp...
阅读全文
posted @ 2017-01-19 19:43 200ML
阅读(110)
评论(0)
推荐(0)
2017年1月17日
CSS几个属性
摘要: background: 背景; width:宽; height: 高; border: 边框; padding: 内边距; margin: 行间距; display:显示; top: 上; bottom: 下; left: 左; right: 右; float: 漂浮; clear: 明确没有漂浮;
阅读全文
posted @ 2017-01-17 16:38 200ML
阅读(116)
评论(0)
推荐(0)
2017年1月16日
OSI七层模型详解
摘要: OSI 七层模型通过七个层次化的结构模型使不同的系统不同的网络之间实现可靠的通讯,因此其最主要的功能就是帮助不同类型的主机实现数据传输 。 完成中继功能的节点通常称为中继系统。在OSI七层模型中,处于不同层的中继系统具有不同的名称。 一个设备工作在哪一层,关键看它工作时利用哪一层的数据头部信息。网桥
阅读全文
posted @ 2017-01-16 18:01 200ML
阅读(192)
评论(0)
推荐(0)
Html表单
摘要: first web #form:表单提交的的模块 # action提交到服务器的地址 method: get(显示传输地址) post(影藏传输地址) #type:text(文本输入) #radio单选框 男 女 #checkbox 复选框,可以选择...
阅读全文
posted @ 2017-01-16 16:53 200ML
阅读(172)
评论(0)
推荐(0)
2017年1月15日
gevent协程
摘要: import gevent def fun(): print('----------') gevent.sleep(0) print('++++++++') def bar(): print('!!!!!!!!!!!') gevent.sleep(0) print('^^^^^^^^^^^^^') gevent.joinall([ gev...
阅读全文
posted @ 2017-01-15 18:40 200ML
阅读(109)
评论(0)
推荐(0)
with补充知识点
摘要: import threading,queue,time import contextlib @contextlib.contextmanager def fun(list_1,val): list_1.append(val) try: yield finally: list_1.remove(val) q = queue.Queue(...
阅读全文
posted @ 2017-01-15 16:32 200ML
阅读(131)
评论(0)
推荐(0)
绝版线程池
摘要: import threading,queue,time StopEvent = object() class Mythreadpool: def __init__(self,max_num): self.q = queue.Queue() self.max_num = max_num self.generate_list = [] ...
阅读全文
posted @ 2017-01-15 13:49 200ML
阅读(166)
评论(0)
推荐(0)
2017年1月14日
low版的线程池
摘要: import threading,queue,time class MythredPool(object): def __init__(self,max_num=20): self.queue = queue.Queue(max_num) for i in range(max_num): self.queue.put(thread...
阅读全文
posted @ 2017-01-14 16:03 200ML
阅读(102)
评论(0)
推荐(0)
2017年1月13日
进程池 Pool
摘要: from multiprocessing import Process,Pool import time #最后一定要 close 和 join def fun(a): time.sleep(1) print(a) return a+100 def bar(arg): print('----',arg) if __name__ == '__main_...
阅读全文
posted @ 2017-01-13 18:51 200ML
阅读(184)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
9
10
11
下一页
公告