
python
ywmack
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
windows 64位 python mysqldb模块
https://sourceforge.net/projects/mysql-python/ 我的是python 2.7.8 下载的 http://120.52.73.45/nchc.dl.sourceforge.net/project/mysql-python/mysql-python-test/1.2.4b4/MySQL-python-1.2.4b4.win32-py2.7.exe原创 2016-08-26 14:04:25 · 584 阅读 · 0 评论 -
python 定时任务去检测服务器端口是否通
import socket import threading import time def testconn( host , port ): sk = socket.socket(socket.AF_INET, socket.SOCK_STREAM) sk.settimeout(1) try: sk.connect((host,port)) return host原创 2016-10-11 15:54:09 · 2856 阅读 · 0 评论 -
haproxy.cfg 配置文件 python脚本管理
HAproxy.cfg 事例文件 global log 127.0.0.1 local1 notice stats timeout 30s user haproxy group haproxy daemon pidfile /usr/local/haproxy/logs/haproxy.pid stats socket /va原创 2017-11-27 10:56:19 · 641 阅读 · 0 评论 -
Python3 日期与时间戳相互转换
""" 日期转时间戳 """ def unix_time(dt): # 转换成时间数组 timeArray = time.strptime(dt, "%Y-%m-%d %H:%M:%S") # 转换成时间戳 timestamp = int(time.mktime(timeArray)) return timestamp """ 时间戳转日...原创 2019-08-27 15:51:34 · 632 阅读 · 0 评论