摘要: import bs4 import requests from lxml import etree url = 'http://www.lzbs.com.cn/ttnews/2022-04/21/content_4957183.htm' response = requests.get(url, he 阅读全文
posted @ 2022-04-22 17:52 Rong_Z 阅读(13) 评论(0) 推荐(0) 编辑
摘要: pages = 100 # 总页数 limit = 30 # 分页界限 quotient = pages // limit remainder = pages % limit if remainder: num = quotient + 1 else: num = quotient for page 阅读全文
posted @ 2022-04-22 12:16 Rong_Z 阅读(31) 评论(0) 推荐(0) 编辑
摘要: 激活指定窗口 import win32gui import win32con def match_windows(win_title): """ 查找指定窗口 :param win_title: 窗口名称 :return: 句柄列表 """ def callback(hwnd, hwnds): if 阅读全文
posted @ 2022-04-22 11:29 Rong_Z 阅读(4275) 评论(2) 推荐(0) 编辑