上一页 1 ··· 6 7 8 9 10 11 12 13 14 15 下一页
摘要: 1. 创建打开浏览器 from selenium import webdriver # 用于操作浏览器 from selenium.webdriver.chrome.options import Options # 用于设置谷歌浏览器 # 创建设置浏览器对象 chrome_set = Options 阅读全文
posted @ 2024-11-23 03:34 铿锵有力自信且坚定 阅读(83) 评论(0) 推荐(0)
摘要: 官方技术文档:https://www.selenium.dev/ 1.谷歌浏览器chrome下载安装 https://www.google.com/chrome 查看安装版本号:(需要安装对应浏览器驱动版本) :-->帮助-->关于 2.安装谷歌浏览器驱动chromedriver(可直接放入pyth 阅读全文
posted @ 2024-11-23 02:52 铿锵有力自信且坚定 阅读(44) 评论(0) 推荐(0)
摘要: 依赖第三方库pillow,处理图像 1.截屏 import pyautogui # 全屏截屏 pyautogui.screenshot("1.png") pyautogui.screenshot(imageFilename="1.png") # 截取某范围 region=(起始x, 起始y, 终止x 阅读全文
posted @ 2024-11-21 21:57 铿锵有力自信且坚定 阅读(121) 评论(0) 推荐(0)
摘要: 1. 键盘输入,不支持中文,切换中文输入法,按照拼音顺序进行(空格就是空格键) pyautogui.write("nihao ")# 每0.1s输入一个 pyautogui.write("nihao ",interval=0.2) 1)写入“你好”到txt文件,目前txt文件是打开状态 import 阅读全文
posted @ 2024-11-21 21:31 铿锵有力自信且坚定 阅读(154) 评论(0) 推荐(0)
摘要: pyautogui用以操作鼠标,键盘 1. 鼠标移动 import pyautogui# 鼠标移动pyautogui.moveTo(x=0, y=0)# 鼠标移动,xy对应坐标位置,duration移动所用时间pyautogui.moveTo(x=0, y=0, duration=3)# 1920x 阅读全文
posted @ 2024-11-20 22:55 铿锵有力自信且坚定 阅读(180) 评论(0) 推荐(0)
摘要: ps 用于列出系统中当前运行的所有进程 1.基本使用 ps -ef ps -x ps -aux 解析参数: e:表示显示所有进程 f:表示全格式输出 x: 显示所有与终端无关的进程 2.显示线程 ps -efL 起源:使用htop时,查看一些pid号,用ps -ef | grep pid 去查找不到 阅读全文
posted @ 2024-11-19 23:08 铿锵有力自信且坚定 阅读(65) 评论(0) 推荐(0)
摘要: 1. <form>:表单 <input type="submit" value="登录2" /> :提交表单 格式:{user="", password=""} <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title 阅读全文
posted @ 2024-11-10 11:04 铿锵有力自信且坚定 阅读(40) 评论(0) 推荐(0)
摘要: 1.注释 <!-- --> 2.<html>标签,标准形式 <!DOCTYPE html> <html lang="en"> <head> </head> <body> </body> </html> 2.<head>标签,包含文档的元数据 以下是<head>标签中常见的一些元素 ①<meta>:提 阅读全文
posted @ 2024-11-10 01:49 铿锵有力自信且坚定 阅读(25) 评论(0) 推荐(0)
摘要: 1.socket服务端,curl访问 #!/usr/bin/env python3 # coding:utf-8 import socket def handle_request(client): recv = client.recv(1024) client.send(bytes("HTTP/1. 阅读全文
posted @ 2024-11-10 00:07 铿锵有力自信且坚定 阅读(82) 评论(0) 推荐(0)
摘要: 1.连接 import pymysql # 创建连接 conn = pymysql.connect(host="127.0.0.1", port=3306, user="root", password="123456",db="test") # 创建游标 cursor = conn.cursor() 阅读全文
posted @ 2024-10-27 16:27 铿锵有力自信且坚定 阅读(31) 评论(0) 推荐(0)
上一页 1 ··· 6 7 8 9 10 11 12 13 14 15 下一页