![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python
mvpboss1004
这个作者很懒,什么都没留下…
展开
-
logging模块使用TCP/UDP发送纯日志内容
logging模块使用TCP/UDP发送纯日志内容python的logging模块允许使用多种方式(handler)记录/发送日志,包括:logging StreamHandlerFileHandlerlogging.handlers BufferingHandlerMemoryHandlerHTTPHandlerNTEventLogHandlerSMTPHandlerSocke原创 2017-01-14 11:34:46 · 2904 阅读 · 4 评论 -
pypi-server安装配置及使用
假如在10.1.18.43:8088上搭建pypi-server1.后台启动pypi-serverWindows:start /b pypi-server -p 8088 packages_dir Linux:nohup pypi-server -p 8088 packages_dir &2.客户端如果使用easy_install:easy_install -i http:原创 2016-09-28 16:20:55 · 3514 阅读 · 0 评论 -
Python3中实现代码运行超时报错
写代码时经常遇到这样的需求:某些语句执行时间过长时,需要报错。timeout-decorator模块可以很方便地实现。使用前先安装:pip3 install timeout-decorator这是装饰器,所以对于预先确定的超时时间、用于显示定义的函数,没有问题。对于需要运行时才确定的超时时间,可以参考以下做法:from timeout_decorator import timeoutimport原创 2018-05-04 11:44:05 · 5128 阅读 · 2 评论