上一页 1 2 3 4 5 6 7 8 ··· 19 下一页
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>submit测试</title> </head> <body> <form class="info"> <input type="text" name="nam 阅读全文
posted @ 2026-01-08 13:57 chenlight 阅读(2) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2026-01-06 11:34 chenlight 阅读(3) 评论(0) 推荐(0)
摘要: 在 Microsoft Edge 浏览器(或基于 Chromium 的浏览器,如 Chrome)中,“保留日志” 和 “禁用缓存” 是开发者工具(DevTools)中的两个非常实用的功能,主要用于调试网页加载、网络请求和性能问题。下面详细介绍这两个功能的用途与用法。 🧩 一、“保留日志”(Pres 阅读全文
posted @ 2026-01-02 17:21 chenlight 阅读(96) 评论(0) 推荐(0)
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>JS逆向</title> </head> <body> HTML交互 <script src="button_click.js"></script> <butt 阅读全文
posted @ 2026-01-01 21:51 chenlight 阅读(10) 评论(0) 推荐(0)
摘要: # 假设有一个包含多个字典的列表,每个字典代表一个人的信息 people = [ {'name': 'Alice', 'age': 30}, {'name': 'Bob', 'age': 25}, {'name': 'Charlie', 'age': 35} ] # 按 age 字段升序排序 sor 阅读全文
posted @ 2025-12-29 15:10 chenlight 阅读(1) 评论(0) 推荐(0)
摘要: from selenium import webdriver from pyquery import PyQuery as pq from selenium.webdriver.common.by import By from selenium.webdriver.support import ex 阅读全文
posted @ 2025-12-29 13:56 chenlight 阅读(8) 评论(0) 推荐(0)
摘要: from playwright.sync_api import sync_playwright def on_response(response): print(f'Status {response.status}:{response.url}') with sync_playwright() as 阅读全文
posted @ 2025-12-29 11:18 chenlight 阅读(31) 评论(0) 推荐(0)
摘要: from playwright.sync_api import sync_playwright with sync_playwright() as p: for browser_type in [p.chromium,p.firefox,p.webkit]: browser = browser_ty 阅读全文
posted @ 2025-12-29 08:59 chenlight 阅读(170) 评论(0) 推荐(0)
摘要: 使用 webdriver-manager 来自动管理 geckodriver(无需手动下载、配置环境变量),这是 Selenium 自动化中更高效、更省心的方案,我会为你提供完整的配置步骤、代码示例和核心注意事项。 一、前置准备:安装必要依赖 首先需要安装两个核心 Python 包:selenium 阅读全文
posted @ 2025-12-28 17:16 chenlight 阅读(12) 评论(0) 推荐(0)
摘要: # 定义全局变量 # session = "初始全局值" session = None def no_global_demo(): # 未声明 global,此处是创建局部变量 session,而非修改全局变量 # session = "局部变量值" print("局部作用域内(无global):" 阅读全文
posted @ 2025-12-28 15:25 chenlight 阅读(2) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 ··· 19 下一页