摘要: 1. 单个位置的字符串提取 这种情况我们可以使用(.+?)这个正则表达式来提取. 举例,一个字符串"a123b",如果我们想提取ab之间的值123,可以使用findall配合正则表达式,这样会返回一个包含所以符合情况的list,代码如下: import re str = "a123b" print 阅读全文
posted @ 2021-02-01 10:52 Bonnie_ξ 阅读(1771) 评论(0) 推荐(0) 编辑
摘要: import time import requests from selenium import webdriver import os from selenium.webdriver.chrome.options import Options chrome_options = Options() 阅读全文
posted @ 2021-02-01 10:41 Bonnie_ξ 阅读(168) 评论(0) 推荐(0) 编辑