标签为 “python” 的文章
-
python编程之select模块的epoll异步I/O模型(一)
2015.09.18 · 发表评论Python 在 2.6 版中引入了用于处理Linux上的epoll模型,windows上则不支持此模型。在select模型篇里介绍了异步模型的好处,而epoll模型是一个比select模型还要高效的模型。 ...
-
python编程之select模块的select异步I/O模型
2015.09.17 · 发表评论在Python中的异步I/O的基础就是select模块的select函数。标准库中的asyncore和asynchat模块对它们进行了进一步的包装,可以从更高层次来处理异步I/O。poll函数和select函数一样,也属于select模块,...
-
python正则实现加减乘除带括号运算
2015.05.24 · 发表评论#!/usr/bin/env python # _*_ coding:utf-8 _*_ __author__ = niunai import re l1_pattern = re.compile(r'\([^()]*\)') # 匹配没...
-
python发邮件脚本
2015.04.10 · 发表评论# Send email script by chenjunxingqy@feinno.com # U can change it as u like, but copy it at first. # Im...
-
check_db 分布式检测
2015.02.13 · 发表评论1.基础 准备环境 [root@localhost ~]# uname -a Linux localhost.localdomain 2.6.32-279.el6.x86_64 #1 SMP Wed Jun 13 18:24:36 EDT 2012 x86_64 x86_64 x86_64 GNU/Linux [root@loc...