03 2023 档案

摘要:https://www.jianshu.com/p/35a5edb23d96 阅读全文
posted @ 2023-03-29 23:30 胖豆芽 阅读(91) 评论(0) 推荐(0) 编辑
摘要:java -verbose 加载 Java 编程语言代理, 请参阅 java.lang.instrument -splash:<imagepath> 使用指定的图像显示启动屏幕有关详细信息, 请参阅 http://www.oracle.com/technetwork/java/javase/docu 阅读全文
posted @ 2023-03-29 22:59 胖豆芽 阅读(90) 评论(0) 推荐(0) 编辑
摘要:https://www.codenong.com/cs106519461/ 阅读全文
posted @ 2023-03-29 21:56 胖豆芽 阅读(4) 评论(0) 推荐(0) 编辑
摘要:''' for循环 求1到100中有几个偶数 ''' count=0 for x in range(1,100): if x%2==0: count+=1 print("有"+str(count)+"个偶数") 阅读全文
posted @ 2023-03-28 22:55 胖豆芽 阅读(27) 评论(0) 推荐(0) 编辑
摘要:''' for循环 ''' name="fqs" for x in name: print(x) '''for循环输出name中有几个y'''name="yyyyygfdskkklliuyyhhhhhhhhhhhhuuuu"i=1for x in name: print(x) if x=="y": 阅读全文
posted @ 2023-03-28 22:33 胖豆芽 阅读(23) 评论(0) 推荐(0) 编辑
摘要:''' 99乘法表 ''' #1*1=1 第一行 行j 列i 第一行有1列 i=1 j=1 print(str(i)+"*"+str(j)+"="+str(i*j)) #1*2=1 2*2=4 第二行 行j 列 第二行有2列 i=1 j=2 print(str(i)+"*"+str(j)+"="+s 阅读全文
posted @ 2023-03-28 21:53 胖豆芽 阅读(355) 评论(0) 推荐(0) 编辑
摘要:''' 不换行 \t 补tab键 ''' print("原始效果:") print("hello") print("world") print("更新后的 不换行效果:") print("hello",end="") print("world") print("原始效果:") print("hell 阅读全文
posted @ 2023-03-27 22:15 胖豆芽 阅读(19) 评论(0) 推荐(0) 编辑
摘要:''' while 求1到100的和 ''' end=1 result=0 while end<=100: result+=end end+=1 print("result:"+str(result)) ''' while 设置一个范围1到100的随机数变量 猜数字 提示大了或者小了 无限次猜测 ' 阅读全文
posted @ 2023-03-24 21:37 胖豆芽 阅读(32) 评论(0) 推荐(0) 编辑
摘要:''' 定义一个数字 1到10 随机产生 ,通过3次判断来猜出数字 ''' import random num=random.randint(1,10) print(num) if int(input("第一次,猜猜数字是:")) != num: print("第一次猜错了") if int(inp 阅读全文
posted @ 2023-03-23 23:04 胖豆芽 阅读(121) 评论(0) 推荐(0) 编辑
摘要:''' 定义一个数字 1到10 随机产生 ,通过3次判断来猜出数字 ''' import random num=random.randint(1,10) print(num) 阅读全文
posted @ 2023-03-23 22:33 胖豆芽 阅读(81) 评论(0) 推荐(0) 编辑
摘要:''' if判断语句 ''' age=18; age2=10; if age>=18: print("成年人") ''' if判断语句 ''' age=input("请输入你的年纪"); if int(age) <=18: print(f"你{age}岁了,免费玩耍") print("大于18岁,收 阅读全文
posted @ 2023-03-22 21:46 胖豆芽 阅读(37) 评论(0) 推荐(0) 编辑
摘要:''' 比较运算符 ''' num1="abc" num2="abc" print(f"num1和num2的比较结果{num1==num2}") 阅读全文
posted @ 2023-03-22 21:17 胖豆芽 阅读(20) 评论(0) 推荐(0) 编辑
摘要:''' 股价计算小程序 小数点后2位数 ''' name="recoo" stock_price=1 stock_code=123456 stock_price_daily_growth_factor=1.2 growth_days=7 message=f"公司是{name},股票价格:{stock 阅读全文
posted @ 2023-03-21 23:05 胖豆芽 阅读(32) 评论(0) 推荐(0) 编辑
摘要:1.转义字符\后面的符号被隐去#转义字符name="\"转义字符\""print(name)2.拼接整数型变量 2.1 %s 占字符串 2.2 %d 占数字类型 2.3 %f 占浮点型 ''' 字符串格式化 ''' #占位符 拼接变量 class_num=57 avg_salary=10 messa 阅读全文
posted @ 2023-03-21 21:47 胖豆芽 阅读(48) 评论(0) 推荐(0) 编辑
摘要:'''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) 编辑
摘要: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) 编辑
摘要: 阅读全文
posted @ 2023-03-14 22:13 胖豆芽 阅读(82) 评论(0) 推荐(0) 编辑
摘要:1.全选代码 2.点击Format 阅读全文
posted @ 2023-03-14 22:03 胖豆芽 阅读(12) 评论(0) 推荐(0) 编辑
摘要:有人指点的package com.fqs.demo1; import java.util.Scanner; public class StudentTest { public static void main(String[]args) { //1.定义数组arr Student []arr=new 阅读全文
posted @ 2023-03-13 23:31 胖豆芽 阅读(18) 评论(0) 推荐(0) 编辑
摘要:自己写的 package com.fqs.demo1; import java.util.Scanner; public class StudentTest { public static void main(String[]args) { //1.定义数组arr Student []arr=new 阅读全文
posted @ 2023-03-11 22:54 胖豆芽 阅读(9) 评论(0) 推荐(0) 编辑
摘要:类 package com.fqs.demo1; public class Student { private String id; private String name; private int age; //无参数 public Student(){ } //全部参数 public Stude 阅读全文
posted @ 2023-03-10 23:21 胖豆芽 阅读(12) 评论(0) 推荐(0) 编辑
摘要:自己练习package com.fqs.demo1; import java.util.Scanner; public class CarTest2 { public static void main(String[]args) { //1.定义一个数组arr存放3个车 Car []arr=new 阅读全文
posted @ 2023-03-08 22:52 胖豆芽 阅读(8) 评论(0) 推荐(0) 编辑
摘要:类 package com.fqs.demo1; public class Car { private String brand; private Double price; private String color; //没有参数 public Car(){ } //全部参数 public Car 阅读全文
posted @ 2023-03-08 22:18 胖豆芽 阅读(21) 评论(0) 推荐(0) 编辑
摘要:1.汽车类 package com.fqs.demo1; public class Car { private String brand; private Double price; private String color; //没有参数 public Car(){ } //全部参数 public 阅读全文
posted @ 2023-03-07 22:42 胖豆芽 阅读(15) 评论(0) 推荐(0) 编辑