上一页 1 ··· 37 38 39 40 41 42 43 44 45 ··· 65 下一页
摘要: '''1.打开文件open('info.json',mode='r',encoding='utf-8')参数1 file 打开文件的名次,类型是字符串,文件路径建议用相对路径参数2 默认值是只读取 r read;只写打开 w write;追加打开 a append 注意在末尾写内容;返回值 返回的是 阅读全文
posted @ 2023-03-20 23:29 胖豆芽 阅读(15) 评论(0) 推荐(0) 编辑
摘要: 1新建一个类继承unittest.TestCase class TestCase(unittest.TestCase): 2.导入unittest import unittest 3.写入一个以test开头的方法 def test_01_login(self): 阅读全文
posted @ 2023-03-20 22:18 胖豆芽 阅读(7) 评论(0) 推荐(0) 编辑
摘要: import traceback import time import unittest from idlelib import browser from selenium import webdriver from selenium.webdriver.common.by import By br 阅读全文
posted @ 2023-03-19 23:45 胖豆芽 阅读(13) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2023-03-19 23:32 胖豆芽 阅读(7) 评论(0) 推荐(0) 编辑
摘要: pycharm 格式化 ctrl+alt+l 阅读全文
posted @ 2023-03-19 22:21 胖豆芽 阅读(17) 评论(0) 推荐(0) 编辑
摘要: package com.fqs.demo1; public class SubS { public static void main(String[]args) { String str="富强民主"; int len=str.length(); System.out.println("len:"+ 阅读全文
posted @ 2023-03-19 18:40 胖豆芽 阅读(172) 评论(0) 推荐(0) 编辑
摘要: from selenium import webdriverfrom selenium.webdriver.common.by import Byfrom selenium.webdriver.common.keys import Keysimport time#打开浏览器driver=webdri 阅读全文
posted @ 2023-03-19 00:01 胖豆芽 阅读(20) 评论(0) 推荐(0) 编辑
摘要: xpath 目的找到输入框 1.绝对路径 //+input 不唯一 不符合要求 绝对路径 //+输入框的父节点和爷爷节点 2属性 //input[@autocomplete="off"] 3.直接copy xpath 获取绝对位置 //*[@id="kw"] 不是万能的 4.属性开始于 阅读全文
posted @ 2023-03-18 23:59 胖豆芽 阅读(41) 评论(0) 推荐(0) 编辑
摘要: package com.fqs.demo1; import java.util.Scanner; public class StudentTest2 { public static void main(String args[]) { //1.新建一个3个长度的数组 Student []arr=ne 阅读全文
posted @ 2023-03-16 23:48 胖豆芽 阅读(88) 评论(0) 推荐(0) 编辑
摘要: package com.fqs.demo1; import java.util.Scanner; public class StudentTest { public static void main(String[] args) { // 1.定义一个数组arr 存放4个学生信息 Student[] 阅读全文
posted @ 2023-03-15 23:33 胖豆芽 阅读(37) 评论(0) 推荐(0) 编辑
上一页 1 ··· 37 38 39 40 41 42 43 44 45 ··· 65 下一页