摘要: python3 抽象类Abstract Classes 抽象类可以这么理解,它就是一个模板,里面声明了子类必须定义的函数,但是对于每个函数都没有给出具体实现。所有函数的实现都是在子类中定义。我们这里给出抽象类的定义方式: from abc import ABC, abstractmethod cla 阅读全文
posted @ 2023-03-21 19:59 michaelchengjl 阅读(127) 评论(0) 推荐(0) 编辑
摘要: python3 异步并发 1. TCPConnector 链接池 import asyncio from aiohttp import ClientSession, TCPConnector async def aiohttp_get(): url = 'url' conn = TCPConnect 阅读全文
posted @ 2023-03-21 17:42 michaelchengjl 阅读(24) 评论(0) 推荐(0) 编辑