摘要: 1. vnc-server 安装和配置 1) 在线安装 yum -y install tigervnc-server 2) 更改配置 cp /lib/systemd/system/vncserver@.service /etc/systemd/system/vncserver@:1.service 阅读全文
posted @ 2019-12-05 10:49 果冻不好吃 阅读(639) 评论(0) 推荐(0) 编辑
摘要: //单例模式 class Singleton{ private static final Singleton INSTANCE = new Singleton(); private Singleton(){} //构造方法私有化 public static Singleton getInstance 阅读全文
posted @ 2019-11-29 20:41 果冻不好吃 阅读(69) 评论(0) 推荐(0) 编辑
摘要: interface Subject{ //核心操作主题 public void get();//核心操作 } class RealSubject implements Subject{ @Override public void get() { System.out.println("取回钱款"); 阅读全文
posted @ 2019-11-21 15:18 果冻不好吃 阅读(82) 评论(0) 推荐(0) 编辑
摘要: interface Fruit{ public void eat(); } class Apple implements Fruit{ @Override public void eat() { System.out.println("吃苹果"); } } class Cherry implemen 阅读全文
posted @ 2019-11-21 11:23 果冻不好吃 阅读(71) 评论(0) 推荐(0) 编辑
摘要: interface USB{ //统一的接口 public void start(); public void stop(); } class Computert{ public void plugin(USB usb){ usb.start(); usb.stop(); } } class Fla 阅读全文
posted @ 2019-11-21 10:53 果冻不好吃 阅读(122) 评论(0) 推荐(0) 编辑
摘要: class User{ private String userid; private String name; private String password; private Role role; public User(String userid,String name,String passw 阅读全文
posted @ 2019-11-19 14:45 果冻不好吃 阅读(129) 评论(0) 推荐(0) 编辑
摘要: 如果只重写hashcode()不重写equals()方法,当比较equals()时只是看他们是否为同一对象(即进行内存地址的比较)。 阅读全文
posted @ 2019-10-09 16:02 果冻不好吃 阅读(78) 评论(0) 推荐(0) 编辑
摘要: flag = False while not flag: for i in third_menu: print(i) choice1 = input("请选择一级菜单:") if choice1 in third_menu: while not flag: for i in third_menu[c 阅读全文
posted @ 2019-09-14 15:53 果冻不好吃 阅读(90) 评论(0) 推荐(0) 编辑
摘要: 可能有点绕 1.node.next –> node.pre;node.pre –> node.next(递归)2.head.next –> None;tail.pre –> None3.head–>tail;tail–>head 阅读全文
posted @ 2019-09-14 11:33 果冻不好吃 阅读(190) 评论(0) 推荐(0) 编辑
摘要: 如果yum install pip执行失败。按如下步骤执行 首先安装epel扩展源: yum -y install epel-release 然后执行yum --disablerepo=epel -y update ca-certificates 最后执行 yum install python-pi 阅读全文
posted @ 2018-09-19 13:41 果冻不好吃 阅读(141) 评论(0) 推荐(0) 编辑