摘要: import osimport reimport requestsurl = "https://wallhaven.cc/search?q=id:12757&sorting=random&ref=fp"#反爬措施#暂无#获取网页内容response = requests.get(url)respon 阅读全文
posted @ 2022-12-17 21:41 仟浊Cc 阅读(597) 评论(0) 推荐(0)
摘要: .*? ?跟在*或者+后边用时,表示懒惰模式。也称非贪婪模式。就是匹配尽可能少的字符。就意味着匹配任意数量的重复,但是在能使整个匹配成功的前提下使用最少的重复。 阅读全文
posted @ 2022-12-17 19:25 仟浊Cc 阅读(21) 评论(0) 推荐(0)