上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 69 下一页
摘要: /opt: 主机额外安装软件 阅读全文
posted @ 2019-10-16 10:14 jihite 阅读(455) 评论(0) 推荐(0) 编辑
摘要: 举个例子 def a_decorator(func): def wrapTheFunc(): print "before decorator" func() print "end decorator" return wrapTheFunc @a_decorator def a_func_need_d 阅读全文
posted @ 2019-07-23 23:32 jihite 阅读(178) 评论(0) 推荐(0) 编辑
摘要: 参考 https://www.jianshu.com/p/fd3aae701db9 阅读全文
posted @ 2019-07-16 09:47 jihite 阅读(1300) 评论(0) 推荐(0) 编辑
摘要: 场景 美国交流电插头(2头)无法插到欧洲壁式插座(3孔) 解决方法是在中间环节用适配器转化下搞定。 意图 将一个借口转化成另一个接口 举例 代码 # # ## ## ### 测试 输出 阅读全文
posted @ 2019-07-14 23:48 jihite 阅读(385) 评论(0) 推荐(0) 编辑
摘要: 创建Scanner对象语法 Scanner scan = new Scanner(System.in); 使用next()获取输入的字符串 使用nextLine()获取字符串 以上二者区别 nextLine()见到回车就结束,而next()必须得到有效字符 next()获取第一个空格前数据(比如,输 阅读全文
posted @ 2019-07-01 10:59 jihite 阅读(7904) 评论(1) 推荐(1) 编辑
摘要: 定义 定义算法族,分别封装起来,让他们之间可以互相替换,此模式让 算法的吧变化独立于使用算法的客户 UML 参考代码 #Character #King #Queen #Knight #WeaponBehavior #AxeBehavior #BowANdArrowBehavior #KnifeBeh 阅读全文
posted @ 2019-06-29 16:42 jihite 阅读(601) 评论(2) 推荐(0) 编辑
摘要: 1. 基本用法 1.1 EVAL script numkeys key [key ...] arg [arg ...] numkeys 是key的个数,后边接着写key1 key2... val1 val2....,举例 1.2 SCRIPT LOAD script 把脚本加载到脚本缓存中,返回SH 阅读全文
posted @ 2019-06-27 17:55 jihite 阅读(52519) 评论(1) 推荐(4) 编辑
摘要: 简介 让每个线程都拥有自己的专属本地变量 示例 运行 分析 从结果看虽然其他的线程已经改变了formatter变量,但是运行本线程时还是原始的值。 阅读全文
posted @ 2019-06-18 15:39 jihite 阅读(293) 评论(0) 推荐(0) 编辑
摘要: https://www.cnblogs.com/logsharing/p/8448446.html 阅读全文
posted @ 2019-05-28 10:39 jihite 阅读(365) 评论(0) 推荐(0) 编辑
摘要: 1. IntelliJ Idea解决Could not autowire. No beans of 'xxxx' type found的错误提示 如果不是代码错误,降低Autowired检测的级别,将Severity的级别由之前的error改成warning或其它可以忽略的级别 参考 2. 引入Lo 阅读全文
posted @ 2019-05-28 10:20 jihite 阅读(650) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 69 下一页