当前位置:首页 > 第6页

python正则获取不到值报错解决方案:AttributeError: 'NoneType' object has no attribute 'group'

zhangchap2年前 (2022-04-20)317
以前的代码:url_www = re.search('https://(\w+).wanchemi.com/(\d+).html', w_url,&nbs...

一个列表中多个字典,字典相同键名合并

zhangchap2年前 (2022-04-14)289
# -*- coding:utf-8 -*- jq1 = {'city':'保定','title':...

python 本周每一天、上周每一天,今天星期几、昨天

zhangchap2年前 (2022-04-12)304
import datetime from datetime import timedelta now = datetime.date...

python requests抓取网页简单的重试机制

zhangchap2年前 (2022-04-12)177
def get_api(url,retries=3):     try:       ...

python 本周、上周、上上周、上上周 代码示例

zhangchap2年前 (2022-04-11)132
# -*- coding:utf-8 -*- import datetime from datetime import tim...

python 多线程 mongodb数据库:motor代码示例

zhangchap2年前 (2022-04-10)406
# -*- coding: utf-8 -*- from motor import motor_asyncio import&...

python asyncio爬虫示例

zhangchap2年前 (2022-04-04)216
# -*- coding:utf-8 -*- import asyncio import aiohttp import ssl im...

python selenium 抓取信息代码示例

zhangchap2年前 (2022-04-02)357
from selenium.webdriver import Chrome from selenium.webdriver.common.by ...

阿里云域名续费优惠口令

zhangchap2年前 (2022-04-02)325
阿里云域名续费优惠口令
目前的优惠口令商标优选即买即用如何获取域名优惠口令?获取域名优惠口令的途径有以下两种,通过这两种方式获取的优惠口令是一致的。在此建议您关注域名微信公众号后获取当前的全部优惠口令,并根据不同的需要使用。...

aiohttp 报错:raise RuntimeError('Event loop is closed') RuntimeError: Event loop is closed

zhangchap2年前 (2022-03-30)181
此错误应该与时间循环策略有关,加上一下代码,即可解决:import platform # 事件循环策略有关,windows 需要选择使用 window...