![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python
pingd
这个作者很懒,什么都没留下…
展开
-
使用python编写的监听端
import socket import time import sys import string import struct import errno import binascii #Definition ser_ip = 'localhost' ser_port = 15001 HEADER_LISTENER = "IIII" split_time = 4 class TcpClien转载 2014-12-08 16:04:41 · 2396 阅读 · 0 评论 -
python日志开启
import logging # 设置默认的level为DEBUG # 设置log的格式 logging.basicConfig( level=logging.DEBUG, format="[%(asctime)s] %(name)s:%(levelname)s: %(message)s" ) # 记录log logging.debug(...) logging.info(...)原创 2015-01-20 10:45:36 · 1046 阅读 · 0 评论