zl程序教程

您现在的位置是:首页 >  后端

当前栏目

Py之twisted:Python库之twisted简介、安装、使用方法等详细攻略

Python安装方法 详细 简介 攻略 py Twisted
2023-09-14 09:04:49 时间

Py之twisted:Python库之twisted简介、安装、使用方法等详细攻略

 

目录

twisted简介

twisted安装

twisted使用方法


 

 

twisted简介

   twisted 是python里面公认的很牛的网络编程框架。学python网络编程的如果不学twisted,估计也就只能算是了解python网络编程吧,就如同开 发网站要用django是一样的,二者都是python下有名的框架。twisted是基于单线程的事件驱动的网络引擎。
  Twisted is an event-driven networking engine written in Python and licensed under the open source ​MIT license. Twisted runs on Python 2 and an ever growing subset also works with Python 3.
    twisted的两种工作方式,reactor 和 application方式。reactor是twisted事件循环的核心,它提供了一些服务的基本接口,像网络通信、线程和事件的分发。反应器具体的工作包括:定时任务、线程、建立网络连接、监听连接。
What is Twisted?
Twisted

twisted安装

pip install Twisted


 

twisted使用方法

后期更新……