摘要: 获取当前时间 时间增减 时区修改 字符串转时间 时间戳 格式化 本地化个性时间短语 本地化支持列表 "传送门" 阅读全文
posted @ 2016-07-13 22:33 4Thing 阅读(235) 评论(0) 推荐(0) 编辑
摘要: unicode的使用 阅读全文
posted @ 2016-07-13 22:31 4Thing 阅读(123) 评论(0) 推荐(0) 编辑
摘要: 多行匹配 阅读全文
posted @ 2016-07-13 21:47 4Thing 阅读(101) 评论(0) 推荐(0) 编辑
摘要: 短匹配的使用 bash ['no.'] ['no.', 'yes.'] ``` 阅读全文
posted @ 2016-07-13 21:34 4Thing 阅读(104) 评论(0) 推荐(0) 编辑
摘要: 在re.sub中使用函数 阅读全文
posted @ 2016-07-13 21:28 4Thing 阅读(89) 评论(0) 推荐(0) 编辑
摘要: 场景 公司实现标准读卡器接口读卡,第三方读卡器实现其他接口,使用适配器适配第三方读卡器。 实现代码 标准读卡器接口: 其他读卡器接口: 其他读卡器实现: 其他读卡器适配器: 相关调用 Out: 阅读全文
posted @ 2016-07-13 21:28 4Thing 阅读(97) 评论(0) 推荐(0) 编辑
摘要: 使用replace替换字符串 使用re.sub替换字符串 阅读全文
posted @ 2016-07-13 21:02 4Thing 阅读(101) 评论(0) 推荐(0) 编辑
摘要: 函数的定义 阅读全文
posted @ 2016-07-13 21:00 4Thing 阅读(100) 评论(0) 推荐(0) 编辑