08 2022 档案

摘要:请参照 https://www.cnblogs.com/wrwangrong/p/16428981.html from selenium.webdriver import Chrome from webdriver_helper import get_webdriver driver=get_web 阅读全文
posted @ 2022-08-30 21:53 NiceTwocu 阅读(74) 评论(0) 推荐(0) 编辑
摘要:一、下载驱动地址 地址:http://chromedriver.storage.googleapis.com/index.html?path=103.0.5060.53/ 二、下载selenium三方库 在cmd命令中运行 pip install selenium 三、自动下载当前浏览器驱动 在cm 阅读全文
posted @ 2022-08-30 21:50 NiceTwocu 阅读(35) 评论(0) 推荐(0) 编辑
摘要:""" 水仙花数:一个三位数,他的个位数、十位数、百位数的立方和等于它本身 需求:判断输入的数是不是水仙花数,如果是水仙花数请打印,并逆序单独打印 思路: 输入一个数 判断这个数是几位数 gewei=i%10 shiwei=i//10%10 baiwei=i//100%10 判断输入的数是不是水仙花 阅读全文
posted @ 2022-08-03 22:33 NiceTwocu 阅读(184) 评论(0) 推荐(0) 编辑
摘要:""" 两数之和 需求:数组中的任意两个数之和等于目标的值,且不能重复,并返回在列表中的索引 例子: a=[1,2,3,4,5,6,7,8,9,10] b=10 1+9=10 在a中的索引分别是0,8 思路: 先统计列表中的元素数量 再通过循环遍历比较两个元素的和与目标值是否相等 再返回索引值 "" 阅读全文
posted @ 2022-08-02 21:18 NiceTwocu 阅读(101) 评论(0) 推荐(0) 编辑
摘要:''' 需求:1-100的数字,如果个位数十位数是7,或者是7的倍数,需要喊过 ''' # for循环实现缝7过游戏 # for i in range(1,100): # gewei=i%10 # shiwei=i//10%10 # beishu=i%7 # if (gewei==7)or(shiw 阅读全文
posted @ 2022-08-02 19:35 NiceTwocu 阅读(217) 评论(0) 推荐(0) 编辑
摘要:package com.itheima; import com.sun.xml.internal.ws.api.model.wsdl.WSDLOutput; public class shuzudemo2 { public static void main(String[] args) { //数组 阅读全文
posted @ 2022-08-02 00:09 NiceTwocu 阅读(800) 评论(0) 推荐(0) 编辑
摘要:package com.itheima; import com.sun.xml.internal.ws.api.model.wsdl.WSDLOutput; public class shuzudemo { public static void main(String[] args) { //数组定 阅读全文
posted @ 2022-08-02 00:08 NiceTwocu 阅读(16) 评论(0) 推荐(0) 编辑
摘要:package com.itheima; public class shuzudemo1 { public static void main(String[] args) { //数组定义 // int[] arr=new int[]{98,99,100}; int[] arr={98,99,100 阅读全文
posted @ 2022-08-02 00:07 NiceTwocu 阅读(18) 评论(0) 推荐(0) 编辑
摘要:package com.itheima; //判断一个整数是否是水仙花数 public class methodmedo10 { public static void main(String[] args) { // boolean k = j(111); //// System.out.print 阅读全文
posted @ 2022-08-02 00:05 NiceTwocu 阅读(21) 评论(0) 推荐(0) 编辑
摘要:package com.itheima; //设计一个方法获取三个整数的较大值,并在控制台打印输出 public class methodmedo09 { public static void main(String[] args) { int max = getmax(10, 20, 30); S 阅读全文
posted @ 2022-08-02 00:05 NiceTwocu 阅读(55) 评论(0) 推荐(0) 编辑
摘要:package com.itheima; //方法重载 /*在同一个类 方法名相同 参数类型不同或参数个数不同 需求:比较两个数是否相等,4种数据类型 */ public class methodmedo11 { public static void main(String[] args) { Sy 阅读全文
posted @ 2022-08-02 00:04 NiceTwocu 阅读(67) 评论(0) 推荐(0) 编辑
摘要:package com.itheima; //返回调用带参数方法的结果 public class methodmedo05 { public static void main(String[] args) { //定义调用的变量 int i=10; i=12; //在main()方法中引用定义好的方 阅读全文
posted @ 2022-08-02 00:03 NiceTwocu 阅读(94) 评论(0) 推荐(0) 编辑
摘要:package com.itheima; //比较相等 public class methodmedo08 { public static void main(String[] args) { //定义两个变量保存输入的值 int a = 10; int b = 20; b=10; //定义一个变量 阅读全文
posted @ 2022-08-02 00:03 NiceTwocu 阅读(34) 评论(0) 推荐(0) 编辑
摘要:package com.itheima; //1-n之间的数求和,n>1 public class methodmedo07 { public static void main(String[] args) { int restul = sum(5); System.out.println("1-5 阅读全文
posted @ 2022-08-02 00:03 NiceTwocu 阅读(74) 评论(0) 推荐(0) 编辑
摘要:package com.itheima; //定义带参数的方法,取较大值 public class methodmedo04 { public static void main(String[] args) { //定义两个变量用于存储数据 int x = 10; int y = 20; //在ma 阅读全文
posted @ 2022-08-02 00:01 NiceTwocu 阅读(58) 评论(0) 推荐(0) 编辑
摘要:package com.itheima; //带参数方法的定义和调用 public class methodmedo03 { public static void main(String[] args) { //定义调用的变量 int i=10; i=11; //在main()方法中引用定义好的方法 阅读全文
posted @ 2022-08-02 00:01 NiceTwocu 阅读(132) 评论(0) 推荐(0) 编辑
摘要:package com.itheima; //带参数的方法,返回较大值 public class methodmedo06 { public static void main(String[] args) { //定义两个变量用于存储数据 int x = 10; int y = 20; //在mai 阅读全文
posted @ 2022-08-02 00:01 NiceTwocu 阅读(88) 评论(0) 推荐(0) 编辑
摘要:package com.itheima; //定义一个方法,判断数字是不是偶数 public class methodmedo01 { public static void main(String[] args) { //记得在main方法中引用方法 iseven(); } //定义一个方法 pub 阅读全文
posted @ 2022-08-01 23:58 NiceTwocu 阅读(17) 评论(0) 推荐(0) 编辑
摘要:1.下载地址 node.js:https://nodejs.org/en/ 安装直接一直下一步即可 2.python:https://www.python.org/downloads/windows/ pip 镜像:https://mirrors.tuna.tsinghua.edu.cn/help/ 阅读全文
posted @ 2022-08-01 23:57 NiceTwocu 阅读(40) 评论(0) 推荐(0) 编辑
摘要:package com.itheima; //取两个数的最大值 public class methodmedo02 { public static void main(String[] args) { //在main()方法中引用定义好的方法 getmax(); } //定义一个方法getmax() 阅读全文
posted @ 2022-08-01 23:57 NiceTwocu 阅读(95) 评论(0) 推荐(0) 编辑
摘要:1 . 创建文件夹 2.创建一个suite 记得点击ctrl+s,这个文件夹会多出这两个东西 3.引入Browser库 这里也要ctrl+s保存 4.建一个testcase 5.打开百度网页 按f8或者点击上方三角形运行 6.完整的测试用例 阅读全文
posted @ 2022-08-01 23:56 NiceTwocu 阅读(26) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示