摘要: package zhu; public class test1006 { public static void main(String[] args) { BaseService user=new UserService(); user.setISave(new FileSave()); user. 阅读全文
posted @ 2018-10-06 14:43 emma0804 阅读(92) 评论(0) 推荐(0) 编辑
摘要: package zhu; public class test1006 { public static void main(String[] args) { UserManager um=new UserManager(); um.action("admin","add"); } }abstract 阅读全文
posted @ 2018-10-06 14:21 emma0804 阅读(64) 评论(0) 推荐(0) 编辑
摘要: public class xun { public static void main(String[] args) { //单例设计模式 1、构造函数私有化 2、声明一个本类对象 3、给外部提供一个静态方法获取实例 //使用场景:工具类(只有功能方法 无属性 频繁调用 ) //饿汉式 类被加载后 对 阅读全文
posted @ 2018-09-03 21:35 emma0804 阅读(75) 评论(0) 推荐(0) 编辑
摘要: import java.util.Arrays;import java.util.Random;import java.util.Scanner; public class xun { public static void main(String[] args) { Random r=new Ran 阅读全文
posted @ 2018-09-03 21:06 emma0804 阅读(92) 评论(0) 推荐(0) 编辑
摘要: public static void main(String[] args) { int[] nums= {34,4,56,17,90,65}; chaRu(nums); } //冒泡排序 public static void maoPao(int[] x) { int len=x.length; 阅读全文
posted @ 2018-09-02 09:49 emma0804 阅读(169) 评论(0) 推荐(0) 编辑
摘要: public class xun { public static void main(String[] args) { int[] scores= {1,2,3,5}; int len=scores.length; //for 循环遍历 for(int i=0;i<len;i++) { int sc 阅读全文
posted @ 2018-09-01 21:45 emma0804 阅读(123) 评论(0) 推荐(0) 编辑
摘要: public class test2 { public static void main(String[] args){ Scanner input=new Scanner(System.in); System.out.println("please input the line"); int li 阅读全文
posted @ 2018-09-01 17:33 emma0804 阅读(385) 评论(0) 推荐(0) 编辑
摘要: 常见命令: 1、echo&@ 1)加@ 不显示命令行只显示结果 如@echo test 结果:test echo test 结果 path>echo test test @echo off 2、注释 Rem 或 :: 3、Pause:暂停&显示:Press any key to continue . 阅读全文
posted @ 2018-04-18 08:38 emma0804 阅读(136) 评论(0) 推荐(0) 编辑
摘要: 1、python版本:python3.5.4 2、selenium 3 3、chrome版本52.0.02743.82 4、安装webdriver并将放置于python同一路径下 example: from selenium import webdriverprint('the first')dri 阅读全文
posted @ 2017-11-13 19:59 emma0804 阅读(143) 评论(0) 推荐(0) 编辑
摘要: unzip1.作用unzip 命令位于/usr/bin目录中,它们和MS DOS下的pkzip、pkunzip及MS Windows中的Winzip软件功能一样,将文件压缩成.zip文件,以节省硬盘空间,当需要的时候再将压缩文件用unzip命令解开。该命令使用权 限是所有用户。2.格式unzip [ 阅读全文
posted @ 2017-10-30 21:43 emma0804 阅读(117) 评论(0) 推荐(0) 编辑