摘要: 1.什么是搜索? 百度:我们想要查找想要的一些信息比如在百度搜索一本书,一部电影这就是最常见的搜索 但是百度!=搜索 垂直搜索(站内搜索) 互联网的搜索:电商网站,新闻网站,招聘网站,等等 IT系统的搜索:OA软件,办公系统软件,后台管理系统等的搜索 总结:搜索就是在任何场景下通过你输入的一些关键字 阅读全文
posted @ 2017-09-26 01:23 晴空半岛 阅读(197) 评论(0) 推荐(0) 编辑
摘要: 框架的实现 MyWebFrameWork_v2.py 运行上述代码需要pycharm中配置 服务器程序--Edit Configurations.... 阅读全文
posted @ 2017-09-17 20:11 晴空半岛 阅读(1556) 评论(0) 推荐(0) 编辑
摘要: # encoding=utf-8 class Node(object): def __init__(self, item): self.item = item self.lchild = None self.rchild = None class BinaryTree(object): def __init__(self, ... 阅读全文
posted @ 2017-09-17 15:42 晴空半岛 阅读(283) 评论(0) 推荐(0) 编辑
摘要: # encoding=utf-8 class Stack(object): """栈""" def __init__(self): """使用顺序表,即列表实现数据的存放""" self.__item = [] def push(self, item): """ti添加一个新的元素到栈顶""" """对于... 阅读全文
posted @ 2017-09-15 15:54 晴空半岛 阅读(273) 评论(0) 推荐(0) 编辑
摘要: # encoding=utf-8 class Node(object): """节点类""" def __init__(self, item): """ 初始化函数 :param item: 要保存的用户数据 """ self.item = item self.next = N... 阅读全文
posted @ 2017-09-13 10:24 晴空半岛 阅读(229) 评论(0) 推荐(0) 编辑
摘要: Renaming Git Branch Follow the steps below to rename a Local and Remote Git Branch: 01 Start by switching to the local branch which you want to rename 阅读全文
posted @ 2022-11-16 17:02 晴空半岛 阅读(13) 评论(0) 推荐(0) 编辑
摘要: 1. 进入IDEA界面,File–>Settings 注:其中, $END$代表打印字符串后光标所处的位置 如: System.out.println($END$); 表示输出后光标在()里面。 阅读全文
posted @ 2020-08-29 01:12 晴空半岛 阅读(473) 评论(0) 推荐(0) 编辑
摘要: top 定位cpu占比高的pidjps -l 定位具体是后台哪个应用程序ps -mp 进程id -o(自定义格式) THREAD,tid,time 定位当前进程所有线程占用cpu时间高的线程idjstack 进程id | grep tid(线程id转换为英文小写16进制格式) -A行数 定位到具体某 阅读全文
posted @ 2020-05-07 11:42 晴空半岛 阅读(936) 评论(1) 推荐(0) 编辑
摘要: 测试 单例通过反序列化出来就不再是单例,反序列化时会反射创建一个新的对象出来 解决就是在单例中定义readResolve()方法 阅读全文
posted @ 2019-12-14 14:03 晴空半岛 阅读(322) 评论(0) 推荐(0) 编辑
摘要: public class LockSupport01 { static Thread t1 = null, t2 = null; public static void main(String[] args) { char[] aI = "1234567".toCharArray(); char[] aC = "ABCDEFG".toCharArr... 阅读全文
posted @ 2019-12-14 13:15 晴空半岛 阅读(186) 评论(0) 推荐(0) 编辑
摘要: 设计成不可变对象为了安全和高效 1.安全方面:举例说明:在文件操作或反射操作的时候需要传递字符串,如果是设计成可变的那么就会造成安全问题 2.高效:举例说明 字符串源码中会将hashcode缓冲下来,那么比如在HashMap中以字符串为key时第一次计算出hash值放缓冲中,以后直接就可以获取到这个 阅读全文
posted @ 2019-12-14 13:09 晴空半岛 阅读(215) 评论(0) 推荐(0) 编辑
摘要: public class String001 { public static void main(String[] args) { String s1 = "hello"; String s2 = new String("hello"); String s3 = new String("hello").intern(); System.out.println(s1 == s2); //false 阅读全文
posted @ 2019-12-14 12:47 晴空半岛 阅读(168) 评论(0) 推荐(0) 编辑
摘要: kill 掉 重启资源管理器就好了 阅读全文
posted @ 2019-12-13 17:00 晴空半岛 阅读(544) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2019-01-16 14:25 晴空半岛 阅读(213) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2019-01-16 14:23 晴空半岛 阅读(408) 评论(0) 推荐(0) 编辑