摘要: 当我们学习一种语言的时候, 最先学习的就是 输出 'Hello word!' 用 python语言的 print 函数, 让计算机无需理解,原样输出 print('Hello word!') #单引号输出 print("Hello word!") #双引号输出, 和上面的结果一样 print(''' 阅读全文
posted @ 2020-04-27 20:01 TomLiuxin 阅读(226) 评论(0) 推荐(0) 编辑
摘要: We can execute the below CMD to create the above step: The step 1,2,5,6, we can copy the files and install it. The step 3, CMD: “C:\Program Files (x86 阅读全文
posted @ 2016-09-29 14:11 TomLiuxin 阅读(210) 评论(0) 推荐(0) 编辑
摘要: 命名空间 import java.awt.*; 1. 创建 frame 窗口 2.创建panel, 并添加元素: 3.ScrollPane 滚动条pane 布局管理器 2. BorderLayout (Frame, Dialog, ScrollPane 默认使用这个 layout) 将容器分为 东 阅读全文
posted @ 2016-09-14 15:47 TomLiuxin 阅读(199) 评论(0) 推荐(0) 编辑
摘要: Java 异常主要依赖于 Try, catch, finally, throw, throws try { int a = Integer.parseInt(args[0]); int b = Integer.parseInt(args[1]); int c = a/b; System.out.pr 阅读全文
posted @ 2016-09-14 15:38 TomLiuxin 阅读(102) 评论(0) 推荐(0) 编辑
摘要: 打开VS,创建工程,然后添加 Appium-dotnet-driver.dll and WebDriver 引用 (此Demo用的是 C# code) 添加 如下命名空间引用: 初始化 android driver: DeviceName -- 可以通过 adb devices 命令得到 packa 阅读全文
posted @ 2016-09-13 14:39 TomLiuxin 阅读(338) 评论(0) 推荐(0) 编辑
摘要: 安卓自动化测试:环境的准备: 在做安卓自动化测试之前,需要在你的电脑上做如下环境的准备, 我用的是 Appium做的自动化测试。 1,2 安装好以后,可以打开 Appium,然后 start 它,如下图: 3. 安装 Java JDK (安卓是基于java 开发的), 安装路径:http://www 阅读全文
posted @ 2016-09-13 14:30 TomLiuxin 阅读(181) 评论(0) 推荐(0) 编辑
摘要: Collection 父类 (List, ArrayList, HashSet, TreeSet, linkedList, Queue, Stack) Map(HasMap, HasTable) 方法: (首字符为小写) Add Remove Size() removeAll Clear Conta 阅读全文
posted @ 2016-09-13 14:21 TomLiuxin 阅读(110) 评论(0) 推荐(0) 编辑
摘要: public static void main(String[] args) args 是 参数 { System.out.println(args.length); for(String arg : args) { System.out.println(arg); } } Scanner sc = 阅读全文
posted @ 2016-09-13 14:20 TomLiuxin 阅读(99) 评论(0) 推荐(0) 编辑
摘要: java提供final关键字 修饰变量 方法 和类,系统不允许为final变量重新赋值,子类不允许覆盖父类的final方法,final类不能派生子类。 Abstract 和 interface 分别用于定义 抽象类和接口 装箱 值类型到引用类型 拆箱 引用类型到值类型 字符串到基本数据类型的转化: 阅读全文
posted @ 2016-09-13 14:19 TomLiuxin 阅读(157) 评论(0) 推荐(0) 编辑
摘要: Java 也是面向对象的语言,具有 封装 继承 (用 关键字 extends) 多态 类的 修饰符有 public final abstract (或者完全省略) 定义类,成员变量, 方法,构造器 (等同于C#), 不同的是 java 多了一个修饰符 final Public class Perso 阅读全文
posted @ 2016-09-13 14:16 TomLiuxin 阅读(147) 评论(0) 推荐(0) 编辑