摘要:
场景 定义厂家接口,每个厂家可以生产自己的仪表和传感器 实现代码 仪表接口: 仪表A实现: 仪表B实现: 传感器接口: 传感器A实现: 传感器B实现: 工厂接口: A工厂实现: B工厂实现: 相关调用 Out: 阅读全文
posted @ 2016-07-09 23:45
4Thing
阅读(149)
评论(0)
推荐(0)
摘要:
拼接数组 阅读全文
posted @ 2016-07-09 23:02
4Thing
阅读(93)
评论(0)
推荐(0)
摘要:
使用数组搜索 阅读全文
posted @ 2016-07-09 22:53
4Thing
阅读(100)
评论(0)
推荐(0)
摘要:
es6新特性 startsWith和endsWith codePointAt和fromCodePoint 阅读全文
posted @ 2016-07-09 11:15
4Thing
阅读(98)
评论(0)
推荐(0)
摘要:
获取DIV的高度和宽度并在DIV中画圆 阅读全文
posted @ 2016-07-09 11:14
4Thing
阅读(83)
评论(0)
推荐(0)
摘要:
使用querySelectorAll获取元素集并计算总和 阅读全文
posted @ 2016-07-09 11:12
4Thing
阅读(93)
评论(0)
推荐(0)
摘要:
Math.PI的使用 阅读全文
posted @ 2016-07-09 11:12
4Thing
阅读(67)
评论(0)
推荐(0)
摘要:
进制的转换 阅读全文
posted @ 2016-07-09 11:11
4Thing
阅读(84)
评论(0)
推荐(0)
摘要:
使用setInterval实现动画效果 阅读全文
posted @ 2016-07-09 11:09
4Thing
阅读(76)
评论(0)
推荐(0)
摘要:
setTimeout的使用 阅读全文
posted @ 2016-07-09 11:09
4Thing
阅读(102)
评论(0)
推荐(0)
摘要:
使用正则表达式转换时间字符串 界面 阅读全文
posted @ 2016-07-09 11:08
4Thing
阅读(88)
评论(0)
推荐(0)
摘要:
使用String.replace高亮子字符串 阅读全文
posted @ 2016-07-09 11:06
4Thing
阅读(76)
评论(0)
推荐(0)
摘要:
替换`` 阅读全文
posted @ 2016-07-09 11:06
4Thing
阅读(83)
评论(0)
推荐(0)
摘要:
使用正则表达式交换匹配项 阅读全文
posted @ 2016-07-09 11:05
4Thing
阅读(106)
评论(0)
推荐(0)
摘要:
使用正则表达式查找并高亮子字符串 阅读全文
posted @ 2016-07-09 11:02
4Thing
阅读(123)
评论(0)
推荐(0)
摘要:
使用正则表达式查找子字符串 阅读全文
posted @ 2016-07-09 11:01
4Thing
阅读(101)
评论(0)
推荐(0)
摘要:
使用正则表达式替换字符串 阅读全文
posted @ 2016-07-09 10:05
4Thing
阅读(88)
评论(0)
推荐(0)
摘要:
compress的使用 阅读全文
posted @ 2016-07-09 10:02
4Thing
阅读(104)
评论(0)
推荐(0)
摘要:
列表推导 过滤 filter的使用 python mylist = [1, 4, 5, 10, 7, 2, 3, 1] print( [n for n in mylist if n 0]) print([n for n in mylist if n 阅读全文
posted @ 2016-07-09 09:58
4Thing
阅读(97)
评论(0)
推荐(0)
摘要:
groupby的使用 阅读全文
posted @ 2016-07-09 09:54
4Thing
阅读(91)
评论(0)
推荐(0)
摘要:
attrgetter的使用 attrgetter函数用于获取对象的指定属性值 阅读全文
posted @ 2016-07-09 09:49
4Thing
阅读(95)
评论(0)
推荐(0)
摘要:
itemgetter的使用 itemgetter函数用于获取对象的指定维的数据 阅读全文
posted @ 2016-07-09 09:49
4Thing
阅读(101)
评论(0)
推荐(0)
摘要:
使用slice截取数组和字符串 阅读全文
posted @ 2016-07-09 09:46
4Thing
阅读(91)
评论(0)
推荐(0)
摘要:
``` python
from collections import Counter words = [ 'look', 'into', 'my', 'eyes', 'look', 'into', 'my', 'eyes', 'the', 'eyes', 'the', 'eyes', 'the', 'eyes', 'not', 'around' 阅读全文
posted @ 2016-07-09 09:46
4Thing
阅读(83)
评论(0)
推荐(0)
摘要:
列表和字典的去重 lambda在字典的去重中的使用 阅读全文
posted @ 2016-07-09 09:42
4Thing
阅读(104)
评论(0)
推荐(0)
摘要:
并集、差集、合集操作 推导 阅读全文
posted @ 2016-07-09 09:36
4Thing
阅读(80)
评论(0)
推荐(0)
摘要:
zip的使用 获取最大和最小值 使用lambda定义最大和最小值的计算规则 阅读全文
posted @ 2016-07-09 09:30
4Thing
阅读(97)
评论(0)
推荐(0)
摘要:
参考 https://pypi.python.org/pypi/psutil/ "CPU Affinity (CPU亲合力)" "也看linux内存去哪儿了" "Real UID,Effective UID,Saved UID" "top显示的内存各项参数解析" "Android内存分析和调优(上) 阅读全文
posted @ 2016-07-09 00:39
4Thing
阅读(477)
评论(0)
推荐(0)
摘要:
场景 没种仪表工厂都实现了生产仪表的接口,不同的工厂生产不同仪表 实现代码 仪表接口: 仪表A实现: 仪表B实现: 工厂接口: A工厂实现: B工厂实现: 相关调用 Out: 阅读全文
posted @ 2016-07-09 00:11
4Thing
阅读(130)
评论(0)
推荐(0)

浙公网安备 33010602011771号