![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Python
文章平均质量分 78
iteye_4947
这个作者很懒,什么都没留下…
展开
-
Django在Apache的Deploy
第一次用Python进行Web开发。选择用比较流行的Django。本地开发测试很顺利。然而Deploy的时候却遇到了麻烦。我的Python安装了3.3的版本,Apache2.4(http://www.apachelounge.com/download/win64/)mod_wsgi很难找,最后在http://www.lfd.uci.edu/~gohlke/pythonlibs/#mod_...原创 2013-08-20 11:11:19 · 93 阅读 · 0 评论 -
Python SSH 开发
使用PARAMIKO进行SSH的开发http://www.cnblogs.com/gannan/archive/2012/02/06/2339883.htmlPARAMIKO使用Python2.61. Install Pycrypto : http://www.voidspace.org.uk/python/modules.shtml#pycrypto2. Install ...原创 2013-08-26 10:44:59 · 87 阅读 · 0 评论 -
Python Registry开发
from _winreg import *import tracebackimport win32serviceimport win32serviceutilimport win32apiimport win32conimport win32eventimport win32evtlogutilimport oslogfile = "c:/jojo/log...原创 2013-08-26 11:01:00 · 1752 阅读 · 0 评论 -
Python Windows Service开发
注意要import script文件另外script文件中的方法不要有控制台打印输出 ''' Usage : python resartHubService.py install Usage : python resartHubService.py start Usage : python resartHubService.py stop Usage : pytho...原创 2013-08-26 11:03:21 · 99 阅读 · 0 评论 -
用py2exe开发windows service
setup.pyfrom distutils.core import setupimport py2exesetup( service=["RestartHubService"], options = { "py2exe": { "includes": "decimal, datetime, email" } }) 用上一篇文章中开发的RestartHubServic...原创 2013-08-28 09:43:38 · 145 阅读 · 0 评论 -
Python email 开发
def send_email(self): self.emails='a1@b.c,a2@b.c' msg = MIMEText(self.content) msg['SUBJECT'] = self.subject msg['TO'] = ', '.join(self.emails) print(msg['TO']) ...原创 2013-08-28 09:58:35 · 133 阅读 · 0 评论 -
Python Cron job开发
利用ApScheduler https://pypi.python.org/pypi/APScheduler/ 开发cron jobdef restartHubMain(self): self.write(self.hostname) self.scheduler = Scheduler(daemonic = False) self.scheduler.start() ...原创 2013-08-28 10:01:02 · 265 阅读 · 0 评论 -
Python查杀进程
Python有一个PSUtil的库可以管理进程 def killLongRunningPids(pids, max_run_minutes): for pid in pids: try : ps = psutil.Process(pid) ps_name = ps.name.lower() create_time = int(ps...原创 2013-08-28 13:33:51 · 197 阅读 · 0 评论